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()