Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMartin Hořeňovský2021-10-25 14:46:54 +0200
committerMartin Hořeňovský2021-10-25 14:46:54 +0200
commit0fdee1c27362f18f2769ba13d9a2f74823b3b8c4 (patch)
treed4a1323d525af53004743e71f32db6b8c71754a9
parent22750cde0e0d2c02ab447e2500422f2711356053 (diff)
downloadcatch3-0fdee1c27362f18f2769ba13d9a2f74823b3b8c4.tar.gz
Stop declaring compiled Catch2 artifacts as arch independent
-rw-r--r--CMakeLists.txt16
1 files changed, 0 insertions, 16 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f1be3f59..1ff8e020 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -114,27 +114,11 @@ if (NOT_SUBPROJECT)
${CATCH_CMAKE_CONFIG_DESTINATION}
)
- ## TODO: Catch2 main target?
- ## Install some cpp file as well?
-
- # By default, FooConfigVersion is tied to architecture that it was
- # generated on. Because Catch2 is header-only, it is arch-independent
- # and thus Catch2ConfigVersion should not be tied to the architecture
- # it was generated on.
- #
- # CMake does not provide a direct customization point for this in
- # `write_basic_package_version_file`, but it can be accomplished
- # indirectly by temporarily redefining `CMAKE_SIZEOF_VOID_P` to an
- # empty string. Note that just undefining the variable could be
- # insufficient in cases where the variable was already in CMake cache
- set(CATCH2_CMAKE_SIZEOF_VOID_P ${CMAKE_SIZEOF_VOID_P})
- set(CMAKE_SIZEOF_VOID_P "")
write_basic_package_version_file(
"${CMAKE_CURRENT_BINARY_DIR}/Catch2ConfigVersion.cmake"
COMPATIBILITY
SameMajorVersion
)
- set(CMAKE_SIZEOF_VOID_P ${CATCH2_CMAKE_SIZEOF_VOID_P})
install(
FILES