include(CTest)
enable_testing()
-# Set makefile verbose on
-set( CMAKE_VERBOSE_MAKEFILE 1 )
#======================================
# Fortran compilers stuff
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
#=======================================