[Viewer/Build]

- changed: compiler options for "Release with Debug" builds
- changed: compiler and linker options for "Release" builds

--HG--
branch : Viewer-Build
meow-7.2.2
Kitty Barnett 2010-08-22 05:48:00 +02:00
parent c1d74e58ab
commit 3ee498c4ed
3 changed files with 6 additions and 3 deletions

View File

@ -0,0 +1,3 @@
[Viewer/Build]
- changed: compiler options for "Release with Debug" builds
- changed: compiler and linker options for "Release" builds

View File

@ -38,10 +38,10 @@ if (WINDOWS)
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /Od /Zi /MDd /MP"
CACHE STRING "C++ compiler debug options" FORCE)
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO
"${CMAKE_CXX_FLAGS_RELWITHDEBINFO} /Od /Zi /MD /MP"
"${CMAKE_CXX_FLAGS_RELWITHDEBINFO} /Od /Zi /MD /Gm"
CACHE STRING "C++ compiler release-with-debug options" FORCE)
set(CMAKE_CXX_FLAGS_RELEASE
"${CMAKE_CXX_FLAGS_RELEASE} ${LL_CXX_FLAGS} /O2 /Zi /MD /MP"
"${CMAKE_CXX_FLAGS_RELEASE} ${LL_CXX_FLAGS} /O2 /Zi /MD /Oi /Ot /GF /Gy /arch:SSE2"
CACHE STRING "C++ compiler release options" FORCE)
set(CMAKE_CXX_STANDARD_LIBRARIES "")

View File

@ -1410,7 +1410,7 @@ if (WINDOWS)
if(MSVC71)
set(release_flags "/MAP:Release/${VIEWER_BINARY_NAME}.map /MAPINFO:LINES")
else(MSVC71)
set(release_flags "/MAP:Release/${VIEWER_BINARY_NAME}.map")
set(release_flags "/MAP:Release/${VIEWER_BINARY_NAME}.map /OPT:REF")
endif(MSVC71)
set_target_properties(${VIEWER_BINARY_NAME}