Skip to content

Commit 57283dc

Browse files
committed
Prevented CMAKE_Fortran_COMPILER_VERSION from becoming undefined
1 parent 2567838 commit 57283dc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ endif()
4242

4343
if (CMAKE_VERSION VERSION_GREATER 3.2.3)
4444
# Detect Fortran compiler version directly
45+
set(CMAKE_Fortran_COMPILER_VERSION ${CMAKE_Fortran_COMPILER_VERSION}
46+
CACHE STRING "")
47+
mark_as_advanced(FORCE CMAKE_Fortran_COMPILER_VERSION)
4548
if(gfortran_compiler AND (CMAKE_Fortran_COMPILER_VERSION VERSION_GREATER 5.0.0))
4649
set(opencoarrays_aware_compiler true)
4750
add_definitions(-DPREFIX_NAME=_gfortran_caf_)

0 commit comments

Comments
 (0)