mirror of
https://github.com/glest/glest-source.git
synced 2025-08-19 06:31:19 +02:00
CMakeLists.txt:narrow scope of -std=gnu++11
Make sure this passes Travis CI test before merging. This is to get rid of warnings such as the following: [ 31%] Building C object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/feathery_ftp/ftpServer.c.o [ 31%] Building C object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/feathery_ftp/ftpSession.c.o cc1: warning: command line option '-std=gnu++11' is valid for C++/ObjC++ but not for C cc1: warning: command line option '-std=gnu++11' is valid for C++/ObjC++ but not for C [ 31%] Building C object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/feathery_ftp/ftpTargetPosix.c.o cc1: warning: command line option '-std=gnu++11' is valid for C++/ObjC++ but not for C
This commit is contained in:
@@ -129,7 +129,7 @@ IF(CMAKE_COMPILER_IS_GNUCXX OR MINGW)
|
||||
|
||||
# GCC specific Compiler Options
|
||||
ELSE()
|
||||
ADD_DEFINITIONS("-std=gnu++11 -frounding-math -fsignaling-nans")
|
||||
ADD_DEFINITIONS("-frounding-math -fsignaling-nans")
|
||||
|
||||
# IF(NOT MINGW)
|
||||
# set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -rdynamic")
|
||||
|
@@ -8,7 +8,7 @@ SET(TARGET_NAME_MANPAGE "${TARGET_NAME}.6")
|
||||
IF(BUILD_ZETAGLEST)
|
||||
MESSAGE(STATUS "Will try to build ZetaGlest game")
|
||||
|
||||
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
|
||||
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -std=gnu++11")
|
||||
|
||||
IF(WIN32)
|
||||
SET(CMAKE_LIBRARY_PATH ${CMAKE_LIBRARY_PATH}
|
||||
|
Reference in New Issue
Block a user