summaryrefslogtreecommitdiffstats
path: root/config/cmake/grepTest.cmake
diff options
context:
space:
mode:
authorAllen Byrne <50328838+byrnHDF@users.noreply.github.com>2023-06-05 23:19:11 (GMT)
committerGitHub <noreply@github.com>2023-06-05 23:19:11 (GMT)
commit36a2a8d5ae073d0b2c6d7c61cc9adc830886cc56 (patch)
tree139374492023c1c8cddc46f589fc30548b3cb722 /config/cmake/grepTest.cmake
parentf4b6f3d8e049b9308bdbdc468d146fbb5da51f5d (diff)
downloadhdf5-36a2a8d5ae073d0b2c6d7c61cc9adc830886cc56.zip
hdf5-36a2a8d5ae073d0b2c6d7c61cc9adc830886cc56.tar.gz
hdf5-36a2a8d5ae073d0b2c6d7c61cc9adc830886cc56.tar.bz2
Fix multiConfig variable usage and remove unused CMake vars (#3051)
Diffstat (limited to 'config/cmake/grepTest.cmake')
-rw-r--r--config/cmake/grepTest.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/config/cmake/grepTest.cmake b/config/cmake/grepTest.cmake
index 3b0baf5..9dcedb5 100644
--- a/config/cmake/grepTest.cmake
+++ b/config/cmake/grepTest.cmake
@@ -42,6 +42,8 @@ message (STATUS "COMMAND: ${TEST_EMULATOR} ${TEST_PROGRAM} ${TEST_ARGS}")
if (TEST_LIBRARY_DIRECTORY)
if (WIN32)
set (ENV{PATH} "$ENV{PATH};${TEST_LIBRARY_DIRECTORY}")
+ elseif (APPLE)
+ set (ENV{DYLD_LIBRARY_PATH} "$ENV{DYLD_LIBRARY_PATH}:${TEST_LIBRARY_DIRECTORY}")
else ()
set (ENV{LD_LIBRARY_PATH} "$ENV{LD_LIBRARY_PATH}:${TEST_LIBRARY_DIRECTORY}")
endif ()