Fix CMake support

This commit is contained in:
Martin Hauke 2016-03-05 22:48:05 +01:00 committed by Yamagi Burmeister
parent 8a40cd5e9f
commit a089f4c747

View file

@ -6,7 +6,7 @@ if(NOT CMAKE_BUILD_TYPE)
endif(NOT CMAKE_BUILD_TYPE) endif(NOT CMAKE_BUILD_TYPE)
# CMake project configuration # CMake project configuration
project(yquake2-xatrix) project(yquake2-ctf)
# Enforce compiler flags (GCC / Clang compatible, yquake2 # Enforce compiler flags (GCC / Clang compatible, yquake2
# won't build with another compiler anyways) # 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 # Linker Flags
if(${CMAKE_SYSTEM_NAME} MATCHES "Windows") if(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
list(APPEND XatrixLinkerFlags "-lm") list(APPEND CtfLinkerFlags "-lm")
else() else()
list(APPEND XatrixLinkerFlags "-lm -rdynamic") list(APPEND CtfLinkerFlags "-lm -rdynamic")
endif() endif()
set(Ctf-Source set(Ctf-Source