Skip to content

Commit

Permalink
hack to fix runtime errors on macos when using global SDL2 framework
Browse files Browse the repository at this point in the history
  • Loading branch information
ScrelliCopter committed Oct 6, 2023
1 parent 4b5bc19 commit 2496f9e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down

0 comments on commit 2496f9e

Please sign in to comment.