Prospective fix for ctest on macOS in the CI

Try manually to propagate the local environment variable for the dyld framework path

It might not get propagated across the process boundaries by itself the way github actions set it in the local environment.
This commit is contained in:
Simon Hausmann 2021-03-17 11:34:34 +01:00
parent e7cbc716ed
commit 372ba09741

View file

@ -142,4 +142,7 @@ if(BUILD_TESTING)
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
set_property(TEST api_tests PROPERTY WORKING_DIRECTORY "${CMAKE_BINARY_DIR}")
endif()
if(APPLE)
set_property(TEST api_tests PROPERTY ENVIRONMENT "DYLD_FRAMEWORK_PATH=$ENV{DYLD_FRAMEWORK_PATH}")
endif()
endif()