hack to fix runtime errors on macos when using global SDL2 framework

This commit is contained in:
a dinosaur 2023-10-07 09:55:27 +11:00
parent 4b5bc193ba
commit 2496f9e2a3

View File

@ -17,6 +17,8 @@ function (common_setup _TARGET)
$<$<BOOL:${GNU}>:m>)
target_compile_options(${_TARGET} PRIVATE
$<$<BOOL:${GNU}>:-Wall -Wextra -pedantic -Wno-unused-parameter>)
target_link_options(${_TARGET} PRIVATE
$<$<PLATFORM_ID:Darwin>:-Wl,-rpath,/Library/Frameworks>)
endfunction()
add_executable(${TARGET} ${SOURCES_COMMON} ${SOURCES_SDL_RENDERER})