summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-04-18 11:28:47 (GMT)
committerBrad King <brad.king@kitware.com>2018-04-18 11:31:35 (GMT)
commit9fa0f2eb5638b5863c573c0ef1922d4cb2c729d5 (patch)
tree4eab065f89c88508aeba471f4c8e2e14c6e17161 /Modules
parentd244a8ab5b4b145ef210300fb244cdea06d5c943 (diff)
downloadCMake-9fa0f2eb5638b5863c573c0ef1922d4cb2c729d5.zip
CMake-9fa0f2eb5638b5863c573c0ef1922d4cb2c729d5.tar.gz
CMake-9fa0f2eb5638b5863c573c0ef1922d4cb2c729d5.tar.bz2
CMakeFindPackageMode: Perform platform-specific initialization
Since commit v3.1.0-rc1~565^2~3 (Add platform-specific initialization step when enabling languages, 2014-04-29) the main enable-language logic includes the `CMakeSystemSpecificInitialize` module to perform platform-specific initialization based on `CMAKE_SYSTEM_NAME`. This should be done during `cmake --find-package` mode too.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/CMakeFindPackageMode.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/CMakeFindPackageMode.cmake b/Modules/CMakeFindPackageMode.cmake
index 7c41d49..ec3652c 100644
--- a/Modules/CMakeFindPackageMode.cmake
+++ b/Modules/CMakeFindPackageMode.cmake
@@ -65,6 +65,8 @@ if("${CMAKE_SYSTEM_NAME}" MATCHES Darwin AND "${COMPILER_ID}" MATCHES GNU)
set(CMAKE_${LANGUAGE}_OSX_DEPLOYMENT_TARGET_FLAG "")
endif()
+include(CMakeSystemSpecificInitialize)
+
# Also load the system specific file, which sets up e.g. the search paths.
# This makes the FIND_XXX() calls work much better
include(CMakeSystemSpecificInformation)