Skip to content

Commit

Permalink
CMake: use ARCH_INDEPENDENT for write_basic_package_version_file
Browse files Browse the repository at this point in the history
  • Loading branch information
Morwenn committed Jan 17, 2024
1 parent 36606d6 commit 464a7bc
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.12.4)
cmake_minimum_required(VERSION 3.14.0)

list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)

Expand Down Expand Up @@ -48,16 +48,11 @@ configure_package_config_file(
${CMAKE_INSTALL_LIBDIR}/cmake/gfx
)

# Bypass automatic architeture check introduced by CMake,
# use the ARCH_INDEPENDENT option for this in the future
set(GFX_TIMSORT_SIZEOF_VOID_P ${CMAKE_SIZEOF_VOID_P})
unset(CMAKE_SIZEOF_VOID_P)
write_basic_package_version_file(
${CMAKE_BINARY_DIR}/cmake/gfx-timsort-config-version.cmake
COMPATIBILITY
SameMajorVersion
COMPATIBILITY SameMajorVersion
ARCH_INDEPENDENT
)
set(CMAKE_SIZEOF_VOID_P ${GFX_TIMSORT_SIZEOF_VOID_P})

install(
FILES
Expand Down

0 comments on commit 464a7bc

Please sign in to comment.