summaryrefslogtreecommitdiffstats
path: root/Modules/BasicConfigVersion-SameMinorVersion.cmake.in
diff options
context:
space:
mode:
authorJustin Bassett <jbassett271@gmail.com>2018-11-26 07:40:36 (GMT)
committerJustin Bassett <jbassett271@gmail.com>2018-12-01 06:52:40 (GMT)
commiteb973f935f25f5bafdb8d55360a1b122e9dabfa5 (patch)
treef7d7ad0665c8ea0e04efe8a7b7d782beabad60d7 /Modules/BasicConfigVersion-SameMinorVersion.cmake.in
parent6786345210994063030ad82f7ece66a461bbfb76 (diff)
downloadCMake-eb973f935f25f5bafdb8d55360a1b122e9dabfa5.zip
CMake-eb973f935f25f5bafdb8d55360a1b122e9dabfa5.tar.gz
CMake-eb973f935f25f5bafdb8d55360a1b122e9dabfa5.tar.bz2
CMakePackageConfigHelpers: Add ARCH_INDEPENDENT option
Allow skipping the architecture check in the package version file generated from calling write_basic_package_version_file. Document said architecture check. Fixes: #16184
Diffstat (limited to 'Modules/BasicConfigVersion-SameMinorVersion.cmake.in')
-rw-r--r--Modules/BasicConfigVersion-SameMinorVersion.cmake.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/BasicConfigVersion-SameMinorVersion.cmake.in b/Modules/BasicConfigVersion-SameMinorVersion.cmake.in
index 59ca253..bf055e8 100644
--- a/Modules/BasicConfigVersion-SameMinorVersion.cmake.in
+++ b/Modules/BasicConfigVersion-SameMinorVersion.cmake.in
@@ -37,6 +37,11 @@ else()
endif()
+# if the installed project requested no architecture check, don't perform the check
+if("@CVF_ARCH_INDEPENDENT@")
+ return()
+endif()
+
# if the installed or the using project don't have CMAKE_SIZEOF_VOID_P set, ignore it:
if("${CMAKE_SIZEOF_VOID_P}" STREQUAL "" OR "@CMAKE_SIZEOF_VOID_P@" STREQUAL "")
return()