summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-12-01 14:34:13 (GMT)
committerKitware Robot <kwrobot@kitware.com>2021-12-01 14:34:33 (GMT)
commit6f05012126054fb9e4ef1bdb2bda5fcac533c3e4 (patch)
tree6017d7b9591698bcad91e71e04366464fa1fed41 /Modules
parentfaaaf64225c6b6e61f432ab3a3ab00e689444a8c (diff)
parent7896991af029d66c9e1692ce18027fafaa0e9bd8 (diff)
downloadCMake-6f05012126054fb9e4ef1bdb2bda5fcac533c3e4.zip
CMake-6f05012126054fb9e4ef1bdb2bda5fcac533c3e4.tar.gz
CMake-6f05012126054fb9e4ef1bdb2bda5fcac533c3e4.tar.bz2
Merge topic 'GNUInstallDirs-conda-fix'
7896991af0 GNUInstallDirs: Prefer system lib64 over conda lib when ambiguous Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6773
Diffstat (limited to 'Modules')
-rw-r--r--Modules/GNUInstallDirs.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/Modules/GNUInstallDirs.cmake b/Modules/GNUInstallDirs.cmake
index 489c233..6268325 100644
--- a/Modules/GNUInstallDirs.cmake
+++ b/Modules/GNUInstallDirs.cmake
@@ -255,7 +255,9 @@ if(NOT DEFINED CMAKE_INSTALL_LIBDIR OR (_libdir_set
elseif(DEFINED ENV{CONDA_PREFIX})
set(conda_prefix "$ENV{CONDA_PREFIX}")
cmake_path(ABSOLUTE_PATH conda_prefix NORMALIZE)
- if("${CMAKE_INSTALL_PREFIX}" STREQUAL conda_prefix)
+ if("${CMAKE_INSTALL_PREFIX}" STREQUAL conda_prefix AND
+ NOT ("${CMAKE_INSTALL_PREFIX}" MATCHES "^/usr/?$" OR
+ "${CMAKE_INSTALL_PREFIX}" MATCHES "^/usr/local/?$"))
set(__system_type_for_install "conda")
endif()
endif()