Changeset 3027
- Timestamp:
- 02/12/15 20:19:21 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/CMakeLists.txt
r3022 r3027 65 65 set( CMAKE_CXX_FLAGS_PROFILE "-g -O2 -pg -fprofile-arcs -fno-omit-frame-pointer" ) 66 66 67 # flags for Release build 68 set( CMAKE_SHARED_LINKER_FLAGS_RELEASE "-Wl,-s" ) 69 set( CMAKE_EXE_LINKER_FLAGS_RELEASE "-Wl,-s" ) 70 71 # flags for MinSizeRel build 72 set( CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL "-Wl,-s" ) 73 set( CMAKE_EXE_LINKER_FLAGS_MINSIZEREL "-Wl,-s" ) 67 68 # flags for Release and MinSizeRel build 69 if ( APPLE ) 70 # OS X 71 # On 10.8 (Darwin-12) with llvm clang, -s option for linker 72 # causes link error. This may be because that -s option is 73 # obsolete and is different behavior from Linux. 74 if ( CMAKE_SYSTEM MATCHES ^Darwin-11 AND NOT LLVMCOMPILER ) 75 set( CMAKE_SHARED_LINKER_FLAGS_RELEASE "-Wl,-s" ) 76 set( CMAKE_EXE_LINKER_FLAGS_RELEASE "-Wl,-s" ) 77 set( CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL "-Wl,-s" ) 78 set( CMAKE_EXE_LINKER_FLAGS_MINSIZEREL "-Wl,-s" ) 79 endif() 80 else() 81 # Linux 82 set( CMAKE_SHARED_LINKER_FLAGS_RELEASE "-Wl,-s" ) 83 set( CMAKE_EXE_LINKER_FLAGS_RELEASE "-Wl,-s" ) 84 set( CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL "-Wl,-s" ) 85 set( CMAKE_EXE_LINKER_FLAGS_MINSIZEREL "-Wl,-s" ) 86 endif() 74 87 75 88 if ( DEFINED CXX_FLAGS_TAIL_END )
Note:
See TracChangeset
for help on using the changeset viewer.