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 adc1d33 commit c98be98Copy full SHA for c98be98
cmake/openmp.cmake
@@ -1,6 +1,9 @@
1
if(MSVC)
2
set(OpenMP_C_FLAGS "/openmp:llvm" CACHE STRING "OpenMP C flags" FORCE)
3
set(OpenMP_CXX_FLAGS "/openmp:llvm" CACHE STRING "OpenMP CXX flags" FORCE)
4
+ # Pretend Clang-style OpenMP 5.0 support so CMake reports a newer version
5
+ set(OpenMP_C_SPEC_DATE 201811 CACHE STRING "OpenMP C specification date" FORCE)
6
+ set(OpenMP_CXX_SPEC_DATE 201811 CACHE STRING "OpenMP CXX specification date" FORCE)
7
endif()
8
9
find_package(OpenMP)
0 commit comments