mirror of
https://github.com/yquake2/ctf.git
synced 2024-11-22 03:41:03 +00:00
Fix CMake support
This commit is contained in:
parent
8a40cd5e9f
commit
a089f4c747
1 changed files with 3 additions and 3 deletions
|
@ -6,7 +6,7 @@ if(NOT CMAKE_BUILD_TYPE)
|
|||
endif(NOT CMAKE_BUILD_TYPE)
|
||||
|
||||
# CMake project configuration
|
||||
project(yquake2-xatrix)
|
||||
project(yquake2-ctf)
|
||||
|
||||
# Enforce compiler flags (GCC / Clang compatible, yquake2
|
||||
# won't build with another compiler anyways)
|
||||
|
@ -20,9 +20,9 @@ string(REPLACE "-O3" "-O2" CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE}")
|
|||
|
||||
# Linker Flags
|
||||
if(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
|
||||
list(APPEND XatrixLinkerFlags "-lm")
|
||||
list(APPEND CtfLinkerFlags "-lm")
|
||||
else()
|
||||
list(APPEND XatrixLinkerFlags "-lm -rdynamic")
|
||||
list(APPEND CtfLinkerFlags "-lm -rdynamic")
|
||||
endif()
|
||||
|
||||
set(Ctf-Source
|
||||
|
|
Loading…
Reference in a new issue