mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-10 09:09:51 -06:00
This was added in commit 98d0f918ba (LFortran: Add support for this
compiler, 2024-01-25, v3.31.0-rc1~303^2~2) because it is needed for
cases covered by CMake's Fortran tests. However, it does not work
with Fortran modules and breaks lfortran's own `examples/project1`.
Move the flag to the test cases that need it, just as the original
commit did with `--implicit-interface`.
Fixes: #26597
Co-authored-by: Brad King <brad.king@kitware.com>
15 lines
909 B
CMake
15 lines
909 B
CMake
string(APPEND CMAKE_Fortran_FLAGS_DEBUG_INIT " -g")
|
|
string(APPEND CMAKE_Fortran_FLAGS_MINSIZEREL_INIT " ")
|
|
string(APPEND CMAKE_Fortran_FLAGS_RELEASE_INIT " -O3")
|
|
string(APPEND CMAKE_Fortran_FLAGS_RELWITHDEBINFO_INIT " -O2 -g")
|
|
set(CMAKE_Fortran_MODDIR_FLAG "-J")
|
|
set(CMAKE_Fortran_VERBOSE_FLAG "-v -Wl,-v")
|
|
set(CMAKE_Fortran_FORMAT_FIXED_FLAG "--fixed-form")
|
|
set(CMAKE_Fortran_LINKER_WRAPPER_FLAG "-Wl,")
|
|
set(CMAKE_Fortran_COMPILE_OPTIONS_PREPROCESS_ON "--cpp")
|
|
set(CMAKE_Fortran_COMPILE_OPTIONS_PREPROCESS_OFF "--no-cpp")
|
|
set(CMAKE_Fortran_PREPROCESS_SOURCE "<CMAKE_Fortran_COMPILER> --cpp <DEFINES> <INCLUDES> <FLAGS> -E <SOURCE> > <PREPROCESSED_SOURCE>")
|
|
set(CMAKE_Fortran_COMPILE_OBJECT "<CMAKE_Fortran_COMPILER> --cpp-infer <DEFINES> <INCLUDES> <FLAGS> -c <SOURCE> -o <OBJECT>")
|
|
set(CMAKE_SHARED_LIBRARY_CREATE_Fortran_FLAGS "--shared")
|
|
set(CMAKE_SHARED_LIBRARY_LINK_Fortran_FLAGS "-Wl,-export-dynamic")
|