diff options
author | Brad King <brad.king@kitware.com> | 2023-09-26 13:32:53 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2023-09-26 13:33:02 (GMT) |
commit | 8a39d146d4c41b09e4d77c27507854c01b218787 (patch) | |
tree | 5d1a5aee7927758e82648b05486a675aeb53f02d /Modules | |
parent | b8151299dee511eda187b4a53e4ffb7aaafb972f (diff) | |
parent | 3cff031c9ad8aa2415f5c9131968f39d3f232e16 (diff) | |
download | CMake-8a39d146d4c41b09e4d77c27507854c01b218787.zip CMake-8a39d146d4c41b09e4d77c27507854c01b218787.tar.gz CMake-8a39d146d4c41b09e4d77c27507854c01b218787.tar.bz2 |
Merge topic 'FindOpenMP-macOS-LLVM-Clang'
3cff031c9a FindOpenMP: Handle non-Apple clang on macOS
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8832
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/FindOpenMP.cmake | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Modules/FindOpenMP.cmake b/Modules/FindOpenMP.cmake index cd912c3..151b215 100644 --- a/Modules/FindOpenMP.cmake +++ b/Modules/FindOpenMP.cmake @@ -298,8 +298,9 @@ function(_OPENMP_GET_FLAGS LANG FLAG_MODE OPENMP_FLAG_VAR OPENMP_LIB_NAMES_VAR) set("${OPENMP_LIB_NAMES_VAR}" "" PARENT_SCOPE) endif() break() - elseif(CMAKE_${LANG}_COMPILER_ID STREQUAL "AppleClang" - AND CMAKE_${LANG}_COMPILER_VERSION VERSION_GREATER_EQUAL "7.0") + elseif((CMAKE_${LANG}_COMPILER_ID STREQUAL "AppleClang" + AND CMAKE_${LANG}_COMPILER_VERSION VERSION_GREATER_EQUAL "7.0") OR + (CMAKE_${LANG}_COMPILER_ID STREQUAL "Clang" AND APPLE)) # Check for separate OpenMP library on AppleClang 7+ find_library(OpenMP_libomp_LIBRARY |