Changeset 3161 for code/branches/pch/cmake/GetGCCCompilerFlags.cmake
- Timestamp:
- Jun 13, 2009, 11:29:15 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.