From 73354bd01898da65ce364cc625e9241fc0933ede Mon Sep 17 00:00:00 2001 From: Julien Schueller Date: Mon, 30 Jul 2018 10:47:35 +0200 Subject: [PATCH] Set PATH on windows hosts only --- test/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 () -- 2.30.2