X-Git-Url: http://mmka.chem.univ.gda.pl/gitweb/?a=blobdiff_plain;f=CMakeLists.txt;h=3a2d1d7377f9e68ccc04e2c5ca30f9d2d6eac2ce;hb=9ad5403ff42e00836e5821d625cb48bf67332064;hp=87cffd93af3c204d7a9603ea047718fea476f54d;hpb=3a3ee5013eef26f00c82b6948724fd9c54accc15;p=unres.git diff --git a/CMakeLists.txt b/CMakeLists.txt index 87cffd9..3a2d1d7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -70,8 +70,6 @@ ENDMACRO (CINFO_FORMAT) include(CTest) enable_testing() -# Set makefile verbose on -set( CMAKE_VERBOSE_MAKEFILE 1 ) #====================================== # Fortran compilers stuff @@ -91,7 +89,16 @@ if (NOT CMAKE_BUILD_TYPE) set (CMAKE_BUILD_TYPE "Release" CACHE STRING "Choose the type of build, options are: None Debug Release." FORCE) set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "None" "Debug" "Release" ) endif (NOT CMAKE_BUILD_TYPE) - + + +if (CMAKE_BUILD_TYPE STREQUAL "Release") + # Set makefile verbosity off for Release builds + set( CMAKE_VERBOSE_MAKEFILE 0 ) +else() + # Set makefile verbosity on for other builds + set( CMAKE_VERBOSE_MAKEFILE 1 ) +endif (CMAKE_BUILD_TYPE STREQUAL "Release") + #======================================= # Set the varous build variables #=======================================