summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Mützel <markus.muetzel@gmx.de>2024-02-08 16:54:20 (GMT)
committerBrad King <brad.king@kitware.com>2024-02-08 22:35:55 (GMT)
commit3019af64c2379d318b8498b1eedd1a3cbf32cdb9 (patch)
tree1ac9bfb12387ca45da9dc7a5d8861245a4b453e3
parent9aba2533113e16a9f60ae84ba3ae11ed37adbe1a (diff)
downloadCMake-3019af64c2379d318b8498b1eedd1a3cbf32cdb9.zip
CMake-3019af64c2379d318b8498b1eedd1a3cbf32cdb9.tar.gz
CMake-3019af64c2379d318b8498b1eedd1a3cbf32cdb9.tar.bz2
FindOpenMP: Add support for GNU-like Clang targeting MSVC ABI
Use the code path from commit ceb5ee4a7b (FindOpenMP: Add support for Clang on Windows, 2020-02-05, v3.17.0-rc1~10^2) with the GNU-like frontend too.
-rw-r--r--Modules/FindOpenMP.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/FindOpenMP.cmake b/Modules/FindOpenMP.cmake
index 69099f7..f26b864 100644
--- a/Modules/FindOpenMP.cmake
+++ b/Modules/FindOpenMP.cmake
@@ -224,7 +224,8 @@ function(_OPENMP_GET_FLAGS LANG FLAG_MODE OPENMP_FLAG_VAR OPENMP_LIB_NAMES_VAR)
OUTPUT_VARIABLE OpenMP_TRY_COMPILE_OUTPUT
)
- if(OpenMP_COMPILE_RESULT_${FLAG_MODE}_${OPENMP_PLAIN_FLAG})
+ if(OpenMP_COMPILE_RESULT_${FLAG_MODE}_${OPENMP_PLAIN_FLAG} AND
+ NOT "x${CMAKE_${LANG}_SIMULATE_ID}" STREQUAL "xMSVC")
set("${OPENMP_FLAG_VAR}" "${OPENMP_FLAG}" PARENT_SCOPE)
if(CMAKE_${LANG}_VERBOSE_FLAG)