changed: introduce a VERBOSE_DEBUG integer cmake parameter to set the SP_DEBUG flag value

git-svn-id: http://svn.sintef.no/trondheim/IFEM/trunk@873 e10b68d5-8a6e-419e-a041-bce267b0401d
This commit is contained in:
akva 2011-03-25 08:46:04 +00:00 committed by Knut Morten Okstad
parent f4d6909e7d
commit 768d108dc0

View File

@ -4,7 +4,10 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
# Required defines (well, PROFILE_LEVEL is not actually required, but...)
SET(CMAKE_CXX_FLAGS "-Dreal=double -DepsZ=1.0e-12 -DPROFILE_LEVEL=3")
SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DINDEX_CHECK=2 -DSP_DEBUG=4")
SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DINDEX_CHECK=2")
IF(VERBOSE_DEBUG GREATER 0)
SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DSP_DEBUG=${VERBOSE_DEBUG}")
ENDIF(VERBOSE_DEBUG GREATER 0)
ENABLE_LANGUAGE(Fortran)
IF(CMAKE_Fortran_COMPILER MATCHES ifort)