Skip to content

Commit

Permalink
switch to COMPILE_ONLY for headlessStub link to SDL2
Browse files Browse the repository at this point in the history
  • Loading branch information
n-morales committed Nov 24, 2024
1 parent 7c39609 commit 5700171
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rts/lib/headlessStubs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ SET(headlessStubsSources
find_package(SDL2 MODULE REQUIRED)

ADD_LIBRARY(headlessStubs STATIC EXCLUDE_FROM_ALL ${headlessStubsSources})
target_link_libraries(headlessStubs PUBLIC SDL2::SDL2)
target_link_libraries(headlessStubs PUBLIC $<COMPILE_ONLY:SDL2::SDL2>)
SET_TARGET_PROPERTIES(headlessStubs PROPERTIES COMPILE_FLAGS "${PIC_FLAG}")

0 comments on commit 5700171

Please sign in to comment.