mirror of
https://github.com/GayPizzaSpecifications/padlab.git
synced 2025-09-23 18:51:31 +00:00
hack to fix runtime errors on macos when using global SDL2 framework
This commit is contained in:
@ -17,6 +17,8 @@ function (common_setup _TARGET)
|
|||||||
$<$<BOOL:${GNU}>:m>)
|
$<$<BOOL:${GNU}>:m>)
|
||||||
target_compile_options(${_TARGET} PRIVATE
|
target_compile_options(${_TARGET} PRIVATE
|
||||||
$<$<BOOL:${GNU}>:-Wall -Wextra -pedantic -Wno-unused-parameter>)
|
$<$<BOOL:${GNU}>:-Wall -Wextra -pedantic -Wno-unused-parameter>)
|
||||||
|
target_link_options(${_TARGET} PRIVATE
|
||||||
|
$<$<PLATFORM_ID:Darwin>:-Wl,-rpath,/Library/Frameworks>)
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
add_executable(${TARGET} ${SOURCES_COMMON} ${SOURCES_SDL_RENDERER})
|
add_executable(${TARGET} ${SOURCES_COMMON} ${SOURCES_SDL_RENDERER})
|
||||||
|
Reference in New Issue
Block a user