Unable to run C++ unittests in Release or Debug mode

Issue #745 resolved
Johannes Ring created an issue
johannr@debian-t420s:build (master)$ make run_unittests_cpp
[ 93%] Built target dolfin
[ 95%] Linking CXX executable unittests_cpp
/usr/bin/ld: cannot find -lgtest
/usr/bin/ld: cannot find -lgtest_main
collect2: error: ld returned 1 exit status
test/unit/cpp/CMakeFiles/unittests_cpp.dir/build.make:435: recipe for target 'test/unit/cpp/unittests_cpp' failed
make[3]: *** [test/unit/cpp/unittests_cpp] Error 1
CMakeFiles/Makefile2:4328: recipe for target 'test/unit/cpp/CMakeFiles/unittests_cpp.dir/all' failed
make[2]: *** [test/unit/cpp/CMakeFiles/unittests_cpp.dir/all] Error 2
CMakeFiles/Makefile2:366: recipe for target 'CMakeFiles/run_unittests_cpp.dir/rule' failed
make[1]: *** [CMakeFiles/run_unittests_cpp.dir/rule] Error 2
Makefile:279: recipe for target 'run_unittests_cpp' failed
make: *** [run_unittests_cpp] Error 2

Comments (2)

  1. Log in to comment