chiark / gitweb /
Set PATH on windows hosts only
authorJulien Schueller <schueller@phimeca.com>
Mon, 30 Jul 2018 08:47:35 +0000 (10:47 +0200)
committerJulien Schueller <schueller@phimeca.com>
Mon, 30 Jul 2018 10:05:50 +0000 (12:05 +0200)
test/CMakeLists.txt

index 224ac9c145d8c8feaf30b4a3e3c2b76650d58ae6..85fc2ea3b7c3f8b6ce91c66896c1d919fb97fbe8 100644 (file)
@@ -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 ()