syntax check not for debug
This commit is contained in:
parent
32722a3d77
commit
d4c1482690
|
@ -120,7 +120,6 @@ set (CMAKE_LINKER "${PETSC_LINKER}")
|
||||||
if ("${CMAKE_BUILD_TYPE}" STREQUAL "DEBUG" OR "${CMAKE_BUILD_TYPE}" STREQUAL "SYNTAXONLY" )
|
if ("${CMAKE_BUILD_TYPE}" STREQUAL "DEBUG" OR "${CMAKE_BUILD_TYPE}" STREQUAL "SYNTAXONLY" )
|
||||||
set (PARALLEL "OFF")
|
set (PARALLEL "OFF")
|
||||||
set (OPTI "OFF")
|
set (OPTI "OFF")
|
||||||
set (BUILDCMD_POST "${BUILDCMD_POST} -fsyntax-only")
|
|
||||||
elseif ("${CMAKE_BUILD_TYPE}" STREQUAL "RELEASE")
|
elseif ("${CMAKE_BUILD_TYPE}" STREQUAL "RELEASE")
|
||||||
set (PARALLEL "ON")
|
set (PARALLEL "ON")
|
||||||
set (OPTI "DEFENSIVE")
|
set (OPTI "DEFENSIVE")
|
||||||
|
@ -143,6 +142,11 @@ else ()
|
||||||
set(OPENMP "${OPENMP}")
|
set(OPENMP "${OPENMP}")
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
|
# syntax check only (mainly for pre-receive hook, works only with gfortran)
|
||||||
|
if ("${CMAKE_BUILD_TYPE}" STREQUAL "SYNTAXONLY" )
|
||||||
|
set (BUILDCMD_POST "${BUILDCMD_POST} -fsyntax-only")
|
||||||
|
endif ()
|
||||||
|
|
||||||
# Parse DAMASK_BIN from CONFIG file
|
# Parse DAMASK_BIN from CONFIG file
|
||||||
file (READ "CONFIG" CONFIGFILE)
|
file (READ "CONFIG" CONFIGFILE)
|
||||||
string (REGEX REPLACE ";" "\\\\;" CONFIGFILE "${CONFIGFILE}")
|
string (REGEX REPLACE ";" "\\\\;" CONFIGFILE "${CONFIGFILE}")
|
||||||
|
|
Loading…
Reference in New Issue