- Timestamp:
- Feb 7, 2009, 8:03:27 PM (16 years ago)
- Location:
- code/branches/buildsystem2
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/buildsystem2/cmake/BuildConfigGCC.cmake
r2626 r2638 23 23 # Sets the right compiler and linker flags for GCC. 24 24 # 25 26 # Determine compiler version 27 EXEC_PROGRAM( 28 ${CMAKE_CXX_COMPILER} 29 ARGS ${CMAKE_CXX_COMPILER_ARG1} -dumpversion 30 OUTPUT_VARIABLE GCC_VERSION 31 ) 32 33 # GCC may not support #pragma GCC system_header correctly when using 34 # templates. According to Bugzilla, it was fixed March 07 but tests 35 # have confirmed that GCC 4.0.0 does not pose a problem for our cases. 36 INCLUDE(CompareVersionStrings) 37 COMPARE_VERSION_STRINGS("${GCC_VERSION}" "4.0.0" _compare_result) 38 IF(NOT _compare_result LESS 0) 39 SET(GCC_SYSTEM_HEADER_SUPPORT TRUE) 40 ENDIF() 25 41 26 42 # Also include environment flags. Could cause conflicts though -
code/branches/buildsystem2/src/core/CMakeLists.txt
r2634 r2638 68 68 GENERATE_TOLUA_BINDINGS(Core CORE_FILES INPUTFILES LuaBind.h CommandExecutor.h) 69 69 70 IF(NOT GCC_SYSTEM_HEADER_SUPPORT) 71 # Get around displaying a few hundred lines of warning code 72 SET_SOURCE_FILES_PROPERTIES(ArgumentCompletionFunctions.cc PROPERTIES COMPILE_FLAGS "-w") 73 ENDIF() 74 70 75 ADD_LIBRARY(core SHARED ${CORE_FILES}) 71 76 -
code/branches/buildsystem2/src/orxonox/CMakeLists.txt
r2634 r2638 39 39 # Not using precompiled header files: Avoid dependencies 40 40 INCLUDE_DIRECTORIES(pch/nopch) 41 42 IF(NOT GCC_SYSTEM_HEADER_SUPPORT) 43 # Get around displaying a few hundred lines of warning code 44 SET_SOURCE_FILES_PROPERTIES(gamestates/GSGraphics.cc PROPERTIES COMPILE_FLAGS "-w") 45 ENDIF() 41 46 42 47 ADD_EXECUTABLE(orxonox ${ORXONOX_FILES}) -
code/branches/buildsystem2/src/util/CMakeLists.txt
r2634 r2638 58 58 SOURCE_GROUP("" FILES ${CMAKE_BINARY_DIR}/src/OrxonoxConfig.h) 59 59 60 IF(NOT GCC_SYSTEM_HEADER_SUPPORT) 61 # Get around displaying a few hundred lines of warning code 62 SET_SOURCE_FILES_PROPERTIES(MultiType.cc PROPERTIES COMPILE_FLAGS "-w") 63 ENDIF() 64 60 65 ADD_LIBRARY(util SHARED ${UTIL_FILES}) 61 66 SET_TARGET_PROPERTIES(util PROPERTIES DEFINE_SYMBOL "UTIL_SHARED_BUILD")
Note: See TracChangeset
for help on using the changeset viewer.