diff options
author | Justin Bassett <jbassett271@gmail.com> | 2018-11-26 07:40:36 (GMT) |
---|---|---|
committer | Justin Bassett <jbassett271@gmail.com> | 2018-12-01 06:52:40 (GMT) |
commit | eb973f935f25f5bafdb8d55360a1b122e9dabfa5 (patch) | |
tree | f7d7ad0665c8ea0e04efe8a7b7d782beabad60d7 /Modules/BasicConfigVersion-ExactVersion.cmake.in | |
parent | 6786345210994063030ad82f7ece66a461bbfb76 (diff) | |
download | CMake-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-ExactVersion.cmake.in')
-rw-r--r-- | Modules/BasicConfigVersion-ExactVersion.cmake.in | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/BasicConfigVersion-ExactVersion.cmake.in b/Modules/BasicConfigVersion-ExactVersion.cmake.in index de4a23a..fe5c2e5 100644 --- a/Modules/BasicConfigVersion-ExactVersion.cmake.in +++ b/Modules/BasicConfigVersion-ExactVersion.cmake.in @@ -34,6 +34,11 @@ if(PACKAGE_FIND_VERSION STREQUAL PACKAGE_VERSION) 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() |