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 c95ef37 commit d0d3c14Copy full SHA for d0d3c14
CMakeLists.txt
@@ -128,6 +128,14 @@ if (NOT NOFORTRAN AND CMAKE_Fortran_COMPILER_ID STREQUAL "LLVMFlang")
128
endif()
129
set(NO_AVX512 1)
130
131
+
132
+ if (CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 19)
133
+ # LLVM Flang before version 19 doesn't support necessary OpenMP constructs.
134
+ if (USE_OPENMP)
135
+ message(STATUS "Disabling OpenMP for LLVM Flang before version 19.")
136
+ set(USE_OPENMP 0)
137
+ endif()
138
139
140
141
include("${PROJECT_SOURCE_DIR}/cmake/utils.cmake")
0 commit comments