chiark
/
gitweb
/
~ianmdlvl
/
nlopt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
40f8312
)
Set PATH on windows hosts only
author
Julien Schueller
<schueller@phimeca.com>
Mon, 30 Jul 2018 08:47:35 +0000
(10:47 +0200)
committer
Julien Schueller
<schueller@phimeca.com>
Mon, 30 Jul 2018 10:05:50 +0000
(12:05 +0200)
test/CMakeLists.txt
patch
|
blob
|
history
diff --git
a/test/CMakeLists.txt
b/test/CMakeLists.txt
index 224ac9c145d8c8feaf30b4a3e3c2b76650d58ae6..85fc2ea3b7c3f8b6ce91c66896c1d919fb97fbe8 100644
(file)
--- 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})
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 ()
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 ()