mirror of
https://github.com/Kitware/CMake.git
synced 2025-12-31 02:39:48 -06:00
NAG-Fortran: Added initial default compilation flags
The configuration of the NAG Fortran compiler was previously missing the standard flags for debug, release and the other build types.
This commit is contained in:
committed by
Brad King
parent
30c8930e8b
commit
765a611956
@@ -28,6 +28,13 @@ if(NOT CMAKE_Fortran_COMPILER_WORKS AND NOT CMAKE_Fortran_COMPILER_FORCED)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# Initial configuration flags.
|
||||
string(APPEND CMAKE_Fortran_FLAGS_INIT " ")
|
||||
string(APPEND CMAKE_Fortran_FLAGS_DEBUG_INIT " -g")
|
||||
string(APPEND CMAKE_Fortran_FLAGS_MINSIZEREL_INIT " -O2 -DNDEBUG")
|
||||
string(APPEND CMAKE_Fortran_FLAGS_RELEASE_INIT " -O4 -DNDEBUG")
|
||||
string(APPEND CMAKE_Fortran_FLAGS_RELWITHDEBINFO_INIT " -O2 -g -DNDEBUG")
|
||||
|
||||
set(CMAKE_Fortran_SUBMODULE_SEP ".")
|
||||
set(CMAKE_Fortran_SUBMODULE_EXT ".sub")
|
||||
set(CMAKE_Fortran_MODDIR_FLAG "-mdir ")
|
||||
|
||||
Reference in New Issue
Block a user