From 34f8698dfb13557ef93840fe44d57de7a163fe57 Mon Sep 17 00:00:00 2001 From: Jerome Hue Date: Mon, 8 Aug 2022 19:21:16 +0200 Subject: [PATCH] Write an architecture independent CMake version file --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 62b644f..e199a06 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -68,12 +68,14 @@ set(debug_assert_LIBRARY debug_assert) set(debug_assert_LIBRARIES debug_assert) ") +set(DEBUG_ASSERT_CMAKE_SIZEOF_VOID_P ${CMAKE_SIZEOF_VOID_P}) +set(CMAKE_SIZEOF_VOID_P "") write_basic_package_version_file( ${CMAKE_CURRENT_BINARY_DIR}/debug_assert-config-version.cmake VERSION 1.3.1 COMPATIBILITY SameMajorVersion ) - +set(CMAKE_SIZEOF_VOID_P ${DEBUG_ASSERT_CMAKE_SIZEOF_VOID_P}) if(DEBUG_ASSERT_INSTALL) # Install target and header