mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-26 20:31:30 +00:00
cmake: fix Windows linking
This commit is contained in:
parent
57037e4124
commit
e54338ef01
1 changed files with 7 additions and 2 deletions
|
@ -113,10 +113,15 @@ if(${SDL2_FOUND})
|
||||||
${PNG_LIBRARIES}
|
${PNG_LIBRARIES}
|
||||||
${ZLIB_LIBRARIES}
|
${ZLIB_LIBRARIES}
|
||||||
${OPENGL_LIBRARIES}
|
${OPENGL_LIBRARIES}
|
||||||
m #need math lol
|
|
||||||
rt # this too
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if(${CMAKE_SYSTEM} MATCHES Linux)
|
||||||
|
target_link_libraries(${SRB2_SDL2_EXE_NAME} PRIVATE
|
||||||
|
m
|
||||||
|
rt
|
||||||
|
)
|
||||||
|
endif()
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set_target_properties(${SRB2_SDL2_EXE_NAME} PROPERTIES VERSION ${SRB2_VERSION})
|
set_target_properties(${SRB2_SDL2_EXE_NAME} PROPERTIES VERSION ${SRB2_VERSION})
|
||||||
|
|
Loading…
Reference in a new issue