diff --git a/CMakeLists.txt b/CMakeLists.txt index 984dd462..32f5da80 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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})