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