Skip to content
Snippets Groups Projects
Commit 34b57fa0 authored by Sergey Kosukhin's avatar Sergey Kosukhin
Browse files

cmake: simplify compile option assignment

parent cc9d1cdc
No related branches found
No related tags found
1 merge request!50Refactor CMake scripts
......@@ -18,10 +18,10 @@ option(BUILD_DOCUMENTATION "Build documentation" OFF)
option(MTIME_ENABLE_FORTRAN_HL "Enable the high-level Fortran interface" ON)
# Set line limit to none for GNU compiler (default is 132) to enable long
# __FILE__ macro
if(CMAKE_Fortran_COMPILER_ID STREQUAL "GNU")
add_compile_options($<$<COMPILE_LANGUAGE:Fortran>:-ffree-line-length-none>)
endif()
# __FILE__ macro:
add_compile_options(
$<$<COMPILE_LANG_AND_ID:Fortran,GNU>:-ffree-line-length-none>
)
include(GNUInstallDirs)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment