Commit dbd01f45 authored by jclamber's avatar jclamber

fix debug vs release compilation setup

git-svn-id: http://svn.oamp.fr/repos/unsio/trunk@147 ce2cc22f-6084-46ce-a062-084b172ee5dc
parent a88d2658
......@@ -22,8 +22,8 @@ typed_cache_set ( STRING "setup flags" SETUP_FLAGS_INCLUDED 1 )
# Set a default build type if none is given
if ( NOT CMAKE_BUILD_TYPE ) # Debug default
typed_cache_set ( STRING "Build type: Release or Debug" CMAKE_BUILD_TYPE Debug )
else () # else Release
typed_cache_set ( STRING "Build type: Release or Debug" CMAKE_BUILD_TYPE Release )
# else () # else Release
# typed_cache_set ( STRING "Build type: Release or Debug" CMAKE_BUILD_TYPE Release )
endif()
# set optimizer flag
......@@ -33,6 +33,7 @@ else ()
typed_cache_set (STRING "Optimizer" OPT "-O3")
endif ()
#typed_cache_set (STRING "compilation warnings" WARNCPP "-Waddress -Warray-bounds -Wc++0x-compat -Wchar-subscripts -Wenum-compare -Wcomment -Wformat -Wmain -Wmissing-braces -Wparentheses -Wreorder -Wreturn-type -Wsequence-point -Wsign-compare -Wstrict-aliasing -Wstrict-overflow=1 -Wswitch -Wtrigraphs -Wuninitialized -Wunknown-pragmas -Wunused-function -Wunused-label -Wunused-value -Wunused-variable -Wvolatile-register-var")
typed_cache_set (STRING "compilation warnings" WARNCPP "-Wall")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment