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-SameMajorVersion.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-SameMajorVersion.cmake.in')
-rw-r--r-- | Modules/BasicConfigVersion-SameMajorVersion.cmake.in | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/BasicConfigVersion-SameMajorVersion.cmake.in b/Modules/BasicConfigVersion-SameMajorVersion.cmake.in index a32245d..d885c0f 100644 --- a/Modules/BasicConfigVersion-SameMajorVersion.cmake.in +++ b/Modules/BasicConfigVersion-SameMajorVersion.cmake.in @@ -33,6 +33,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() |