Changeset 3161 for code/branches/pch/cmake
- Timestamp:
- Jun 13, 2009, 11:29:15 PM (16 years ago)
- Location:
- code/branches/pch/cmake
- Files:
-
- 2 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
Note: See TracChangeset
for help on using the changeset viewer.