We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29b308b commit 50f6f72Copy full SHA for 50f6f72
CMakeLists.txt
@@ -105,6 +105,9 @@ endif()
105
CACHE STRING "Flags used by the compiler during release builds with debug info" FORCE)
106
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -O0")
107
endif()
108
+ if ( gfortran_compiler AND CMAKE_Fortran_COMPILER_VERSION VERSION_GREATER_EQUAL 7.0.0 )
109
+ add_definitions(-DGCC_GE_7) # Tell library to build against GFortran 7.x bindings b/c we might be using clang for C
110
+ endif()
111
112
if(gfortran_compiler)
113
set(OLD_REQUIRED_FLAGS ${CMAKE_REQUIRED_FLAGS})
0 commit comments