Skip to content

Commit f31d3c4

Browse files
authored
Update openmp.cmake
1 parent c98be98 commit f31d3c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/openmp.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
if(MSVC)
1+
if(MSVC AND NOT (CMAKE_CXX_COMPILER_ID MATCHES "Clang"))
22
set(OpenMP_C_FLAGS "/openmp:llvm" CACHE STRING "OpenMP C flags" FORCE)
33
set(OpenMP_CXX_FLAGS "/openmp:llvm" CACHE STRING "OpenMP CXX flags" FORCE)
44
# Pretend Clang-style OpenMP 5.0 support so CMake reports a newer version

0 commit comments

Comments
 (0)