diff --git a/CMakeLists.txt b/CMakeLists.txt index 6ee6460..162cb1c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -15,6 +15,6 @@ target_compile_definitions(Lesson10 PRIVATE $<$:_CRT_SECUR if (CMAKE_SYSTEM_NAME STREQUAL "Darwin") get_property(SDL3_IMPORTED_LOCATION TARGET SDL3::SDL3 PROPERTY IMPORTED_LOCATION) if (SDL3_IMPORTED_LOCATION MATCHES "^/Library/Frameworks/") - target_link_options(Lesson10 PRIVATE -Wl,-rpath,/Library/Frameworks) + set_property(TARGET Lesson10 PROPERTY BUILD_RPATH "/Library/Frameworks") endif() endif()