From: Julien Schueller Date: Mon, 30 Jul 2018 08:47:35 +0000 (+0200) Subject: Set PATH on windows hosts only X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=73354bd01898da65ce364cc625e9241fc0933ede;p=nlopt.git Set PATH on windows hosts only --- diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 224ac9c..85fc2ea 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -33,7 +33,7 @@ foreach (algo_index RANGE 29)# 43 endif () if (enable_) add_test (NAME testopt_algo${algo_index}_obj${obj_index} COMMAND testopt -a ${algo_index} -o ${obj_index}) - if (WIN32) + if (CMAKE_HOST_SYSTEM_NAME MATCHES Windows) set_tests_properties (testopt_algo${algo_index}_obj${obj_index} PROPERTIES ENVIRONMENT "PATH=${PROJECT_BINARY_DIR}\\${CMAKE_BUILD_TYPE};$ENV{PATH}") # to load dll endif () endif ()