You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ mkdir build
$ cd build
$ cmake -G Ninja ..
[...]
$ ninja
ninja: error: 'ext/gtest/src/googletest-build/libgtest.a', needed by 'cpp-lru-cache-test', missing and no known rule to make it
CMake version is 3.9.4, the environment is Arch Linux x64.
make compiles everything as expected. I believe something is wrong in ExternalProject_Add arguments. Unfortunately I can't give more details since I've never used ExternalProject before (I prefer git submodules).
The text was updated successfully, but these errors were encountered:
@afiskon what I understood so far is that for some reason with cmake -G Ninja .. it generates build.ninja with incompatible paths for static libraries.
So in the build file we have path ext/gtest/src/googletest-build/libgtest.a while in reality when ninja googletest is executed the path where static libraries are generated is ext/gtest/src/googletest-build/googlemock/gtest/libgtest.a
Moreover it somehow doesn't work if you don't execute ninja googletest before ninja.
Now it's all not clear for me, so let the task be open.
Steps to reproduce:
CMake version is 3.9.4, the environment is Arch Linux x64.
make
compiles everything as expected. I believe something is wrong inExternalProject_Add
arguments. Unfortunately I can't give more details since I've never used ExternalProject before (I prefer git submodules).The text was updated successfully, but these errors were encountered: