From 372ba097415c24c54a13dde907ee9b256acab2ee Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Wed, 17 Mar 2021 11:34:34 +0100 Subject: [PATCH] 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. --- api/sixtyfps-cpp/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/sixtyfps-cpp/CMakeLists.txt b/api/sixtyfps-cpp/CMakeLists.txt index 436a52344..e5c28c9dd 100644 --- a/api/sixtyfps-cpp/CMakeLists.txt +++ b/api/sixtyfps-cpp/CMakeLists.txt @@ -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()