mirror of
https://github.com/reactos/CMake.git
synced 2024-12-03 17:11:04 +00:00
5c0c635a09
Define a "Fortran_FORMAT" target and source file property. Initialize the target property from a "CMAKE_Fortran_FORMAT" variable. Interpret values "FIXED" and "FREE" to indicate the source file format. Append corresponding flags to the compiler command line.
10 lines
398 B
CMake
10 lines
398 B
CMake
set(CMAKE_Fortran_FLAGS_INIT "")
|
|
set(CMAKE_Fortran_FLAGS_DEBUG_INIT "-g")
|
|
set(CMAKE_Fortran_FLAGS_MINSIZEREL_INIT "-Os")
|
|
set(CMAKE_Fortran_FLAGS_RELEASE_INIT "-O3")
|
|
set(CMAKE_Fortran_FLAGS_RELWITHDEBINFO_INIT "-O2 -g")
|
|
set(CMAKE_Fortran_MODDIR_FLAG "-fmod=")
|
|
set(CMAKE_Fortran_VERBOSE_FLAG "-v")
|
|
set(CMAKE_Fortran_FORMAT_FIXED_FLAG "-ffixed-form")
|
|
set(CMAKE_Fortran_FORMAT_FREE_FLAG "-ffree-form")
|