From: Julien Schueller Date: Tue, 17 Oct 2017 13:16:36 +0000 (+0200) Subject: Use PROJECT_SOURCE_DIR in test/CMakeLists X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=e25d8b533113b3996997aa6d030adce2f809b094;p=nlopt.git Use PROJECT_SOURCE_DIR in test/CMakeLists --- diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 23556d3..be30bec 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -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)