summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorSprite <SpriteOvO@gmail.com>2022-07-31 08:45:50 (GMT)
committerBrad King <brad.king@kitware.com>2022-08-01 14:25:10 (GMT)
commit09b4e870a5f4725f1529e2f4a998d563d8796b19 (patch)
tree6502d18ecfe84842b21a1db89f68ba630726b2b6 /Modules
parent57ccad00010cd32d07592f6cefd004714e6993ad (diff)
downloadCMake-09b4e870a5f4725f1529e2f4a998d563d8796b19.zip
CMake-09b4e870a5f4725f1529e2f4a998d563d8796b19.tar.gz
CMake-09b4e870a5f4725f1529e2f4a998d563d8796b19.tar.bz2
FindOpenMP: Restore searching system paths
In commit 98314d536e (FindOpenMP: Use NO_DEFAULT_PATH where appropriate, 2017-11-15, v3.11.0-rc1~334^2) we added `NO_DEFAULT_PATH` so that it no longer searches in `CMAKE_PREFIX_PATH`, but this also excludes searching in system paths, which are needed on RISC-V platforms. Use more granular exclusions instead. Fixes: #23469
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindOpenMP.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/Modules/FindOpenMP.cmake b/Modules/FindOpenMP.cmake
index 0590a28..844ceb3 100644
--- a/Modules/FindOpenMP.cmake
+++ b/Modules/FindOpenMP.cmake
@@ -279,7 +279,9 @@ function(_OPENMP_GET_FLAGS LANG FLAG_MODE OPENMP_FLAG_VAR OPENMP_LIB_NAMES_VAR)
DOC "Path to the ${_OPENMP_IMPLICIT_LIB_PLAIN} library for OpenMP"
HINTS ${OpenMP_${LANG}_IMPLICIT_LINK_DIRS}
CMAKE_FIND_ROOT_PATH_BOTH
- NO_DEFAULT_PATH
+ NO_PACKAGE_ROOT_PATH
+ NO_CMAKE_PATH
+ NO_CMAKE_ENVIRONMENT_PATH
)
endif()
mark_as_advanced(OpenMP_${_OPENMP_IMPLICIT_LIB_PLAIN}_LIBRARY)