mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-06-04 18:54:00 +08:00
use runtest.sh script iif /bin/bash does exist
This commit is contained in:
parent
94d87abbdb
commit
05de3dddca
@ -3,6 +3,9 @@ option(EIGEN_DEBUG_ASSERTS "Enable advanced debuging of assertions" OFF)
|
|||||||
|
|
||||||
include(CheckCXXSourceCompiles)
|
include(CheckCXXSourceCompiles)
|
||||||
|
|
||||||
|
# check whether /bin/bash exists
|
||||||
|
find_file(EIGEN_BIN_BASH_EXISTS "/bin/bash" PATHS "/" NO_DEFAULT_PATH)
|
||||||
|
|
||||||
macro(ei_add_property prop value)
|
macro(ei_add_property prop value)
|
||||||
get_property(previous GLOBAL PROPERTY ${prop})
|
get_property(previous GLOBAL PROPERTY ${prop})
|
||||||
set_property(GLOBAL PROPERTY ${prop} "${previous} ${value}")
|
set_property(GLOBAL PROPERTY ${prop} "${previous} ${value}")
|
||||||
@ -61,15 +64,11 @@ macro(ei_add_test_internal testname testname_with_suffix)
|
|||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(WIN32)
|
if(EIGEN_BIN_BASH_EXISTS)
|
||||||
if(CYGWIN)
|
|
||||||
add_test(${testname_with_suffix} "${Eigen_SOURCE_DIR}/test/runtest.sh" "${testname_with_suffix}")
|
|
||||||
else(CYGWIN)
|
|
||||||
add_test(${testname_with_suffix} "${targetname}")
|
|
||||||
endif(CYGWIN)
|
|
||||||
else(WIN32)
|
|
||||||
add_test(${testname_with_suffix} "${Eigen_SOURCE_DIR}/test/runtest.sh" "${testname_with_suffix}")
|
add_test(${testname_with_suffix} "${Eigen_SOURCE_DIR}/test/runtest.sh" "${testname_with_suffix}")
|
||||||
endif(WIN32)
|
else()
|
||||||
|
add_test(${testname_with_suffix} "${targetname}")
|
||||||
|
endif()
|
||||||
|
|
||||||
endmacro(ei_add_test_internal)
|
endmacro(ei_add_test_internal)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user