Skip to content
Snippets Groups Projects
Commit e54338ef authored by Eidolon's avatar Eidolon
Browse files

cmake: fix Windows linking

parent 57037e41
No related branches found
No related tags found
No related merge requests found
......@@ -113,10 +113,15 @@ if(${SDL2_FOUND})
${PNG_LIBRARIES}
${ZLIB_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()
set_target_properties(${SRB2_SDL2_EXE_NAME} PROPERTIES VERSION ${SRB2_VERSION})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment