0

Update our CMakeLists.txt to change the version of pcre. The library name changes from libpcre.dylib to libpcre2-8.dylb. When I rebuild in CLion 1.2.4 I get an error at link time: make[3]: *** No rule to make target /Users/ghendrey/XXX/current/lib/libpcre.dylib', needed bysrc/main/XXX'. Stop.

1 Answers1

0

CLion keeps a cache and the cache was stale. Deleting the cache solved the problem, as described here:

How to clear CMake cache in Clion?

Community
  • 1
  • 1
  • Also note that this is the way CMake's [find_package](https://cmake.org/Wiki/CMake:How_To_Find_Libraries#Performance_and_caching) works, not just in CLion. – goldwin-es Aug 14 '16 at 18:25