chiark / gitweb /
Use PROJECT_SOURCE_DIR in test/CMakeLists
authorJulien Schueller <schueller@phimeca.com>
Tue, 17 Oct 2017 13:16:36 +0000 (15:16 +0200)
committerGitHub <noreply@github.com>
Tue, 17 Oct 2017 13:16:36 +0000 (15:16 +0200)
test/CMakeLists.txt

index 23556d37f16a357f42f8967412c93e0972c4d32d..be30bec12eeebb09c717a72319909b65658947d6 100644 (file)
@@ -2,7 +2,7 @@ add_custom_target (tests)
 
 # have to add timer.c and mt19937ar.c as symbols are declared extern
 add_executable (testopt testfuncs.c testfuncs.h testopt.c
-  ${PROJECT_SOURCE_DIR}/util/timer.c ${PROJECT_SOURCE_DIR}/util/mt19937ar.c ${CMAKE_SOURCE_DIR}/util/nlopt-getopt.c)
+  ${PROJECT_SOURCE_DIR}/util/timer.c ${PROJECT_SOURCE_DIR}/util/mt19937ar.c ${PROJECT_SOURCE_DIR}/util/nlopt-getopt.c)
 target_link_libraries (testopt ${nlopt_lib})
 target_include_directories (testopt PRIVATE ${NLOPT_PRIVATE_INCLUDE_DIRS})
 add_dependencies (tests testopt)