Skip to content
Snippets Groups Projects
Commit 2d80c3ed authored by jcarpent's avatar jcarpent
Browse files

[CMake] Correct bug on OSX with ctest

Under OSX, ctest is not reading the DYLD_LIBRARY_PATH of the current terminal.
This commit forces the correct export of DYLD_LIBRARY_PATH.
parent 5d1abebe
No related branches found
No related tags found
No related merge requests found
......@@ -53,7 +53,11 @@ ENDMACRO(ADD_UNIT_TEST)
# --- RULES -------------------------------------------------------------------
# --- RULES -------------------------------------------------------------------
# --- RULES -------------------------------------------------------------------
ADD_CUSTOM_TARGET(check COMMAND ${CMAKE_CTEST_COMMAND})
IF(APPLE)
ADD_CUSTOM_TARGET(check COMMAND export DYLD_LIBRARY_PATH=$ENV{DYLD_LIBRARY_PATH} && ${CMAKE_CTEST_COMMAND})
ELSE(APPLE)
ADD_CUSTOM_TARGET(check COMMAND ${CMAKE_CTEST_COMMAND})
ENDIF(APPLE)
ADD_UNIT_TEST(tspatial eigen3)
IF(METAPOD_FOUND)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment