Skip to content

Commit

Permalink
Merge PR #334 (Avoid a semicolon in CMAKE_Fortran_Flags)
Browse files Browse the repository at this point in the history
This merge brings PR #334 (Avoid a semicolon in CMAKE_Fortran_FLAGS when
additional flags are passed to cmake, by @branfosj) into the GEOS-Chem
"no-diff-to-benchmark" development stream.

This fixes an error in the CMake compilation command when additional
flags are passed to cmake.

Signed-off-by: Bob Yantosca <[email protected]>
  • Loading branch information
yantosca committed Dec 13, 2023
2 parents 0e2d1b7 + cca320e commit 24c5eed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ ecbuild_declare_project()
find_package(MPI REQUIRED COMPONENTS C CXX Fortran)

if("${CMAKE_Fortran_COMPILER_ID}" STREQUAL "GNU")
list(APPEND CMAKE_Fortran_FLAGS "-ffree-line-length-none")
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -ffree-line-length-none")
endif()

set(CMAKE_Fortran_MODULE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/mod)
Expand Down

0 comments on commit 24c5eed

Please sign in to comment.