Selaa lähdekoodia

Merge topic 'find-openmp-from-system-paths'

09b4e870a5 FindOpenMP: Restore searching system paths

Acked-by: Kitware Robot <[email protected]>
Acked-by: buildbot <[email protected]>
Acked-by: Felix Yan <[email protected]>
Merge-request: !7526
Brad King 3 vuotta sitten
vanhempi
sitoutus
ad20e7b2ae
1 muutettua tiedostoa jossa 3 lisäystä ja 1 poistoa
  1. 3 1
      Modules/FindOpenMP.cmake

+ 3 - 1
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)