e888af9719
We define `NDEBUG` without a space after the `-D` option for most compilers. Remove the space for MSVC (and Intel Fortran) for consistency. The MS compiler technically does not document that the `-D` argument may be separated from its value, though every version to date supports it.
12 lines
544 B
CMake
12 lines
544 B
CMake
include(Platform/Windows-Intel)
|
|
set(CMAKE_BUILD_TYPE_INIT Debug)
|
|
set(_COMPILE_Fortran " /fpp")
|
|
set(CMAKE_Fortran_MODDIR_FLAG "-module:")
|
|
set(CMAKE_Fortran_STANDARD_LIBRARIES_INIT "user32.lib")
|
|
__windows_compiler_intel(Fortran)
|
|
set (CMAKE_Fortran_FLAGS_INIT "/W1 /nologo /fpp /libs:dll /threads")
|
|
set (CMAKE_Fortran_FLAGS_DEBUG_INIT "/Od /debug:full /dbglibs")
|
|
set (CMAKE_Fortran_FLAGS_MINSIZEREL_INIT "/O1 /DNDEBUG")
|
|
set (CMAKE_Fortran_FLAGS_RELEASE_INIT "/O2 /DNDEBUG")
|
|
set (CMAKE_Fortran_FLAGS_RELWITHDEBINFO_INIT "/O2 /debug:full /DNDEBUG")
|