cmake build fix common linker settings.

This commit is contained in:
David Carlier 2022-03-22 20:25:17 +00:00
parent 282d1b8ea6
commit 20171efc15

View file

@ -237,8 +237,8 @@ if(${OPENAL_SUPPORT})
endif()
# General linker flags.
if(!MSVC)
list(APPEND yquake2LinkerFlags "-lm")
if(NOT MSVC)
list(APPEND yquake2LinkerFlags m)
endif()
list(APPEND yquake2LinkerFlags ${CMAKE_DL_LIBS})