Changeset 3161
- Timestamp:
- Jun 13, 2009, 11:29:15 PM (15 years ago)
- Location:
- code/branches/pch
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/pch/cmake/BuildConfigGCC.cmake
r3117 r3161 77 77 ADD_COMPILER_FLAGS("-Wno-deprecated" CXX CACHE) 78 78 79 # Always show why a precompiled header file could not be used 80 ADD_COMPILER_FLAGS("-Winvalid-pch" CXX CACHE) 81 79 82 # Increase warning level if requested 80 83 IF(EXTRA_COMPILER_WARNINGS) -
code/branches/pch/cmake/GetGCCCompilerFlags.cmake
r3117 r3161 42 42 43 43 # For shared libraries linked with gcc, we have to add -fPIC 44 #GET_TARGET_PROPERTY(_target_type ${_target} TYPE)45 #IF(${_target_type} STREQUAL SHARED_LIBRARY)46 #SET(_flag_str "${_flag_str} -fPIC")47 #ENDIF()44 GET_TARGET_PROPERTY(_target_type ${_target} TYPE) 45 IF(NOT MINGW AND ${_target_type} STREQUAL SHARED_LIBRARY) 46 SET(_flag_str "${_flag_str} -fPIC") 47 ENDIF() 48 48 49 49 # Target compile flags -
code/branches/pch/src/core/CorePrecompiledHeaders.h
r3160 r3161 58 58 #include <tinyxml/ticpp.h> 59 59 60 #include "util/Convert.h" 60 // GCC may have problems with anonymous namespaces in certain situations 61 #if !(defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__ < 420)) 62 # include "util/Convert.h" 63 #endif 61 64 #include "util/Debug.h" 62 65 #include "util/Exception.h"
Note: See TracChangeset
for help on using the changeset viewer.