Skip to content

Commit

Permalink
Use ARCH_INDEPENDENT when available
Browse files Browse the repository at this point in the history
  • Loading branch information
topazus authored and serge-sans-paille committed Dec 17, 2023
1 parent dd1f58c commit 7e79c37
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,13 @@ if(frozen.installation)
# generate a CMake configuration file for consumption by CMake's `find_package`
# intrinsic
#
if(${CMAKE_VERSION} VERSION_GREATER "3.14")
set(OPTIONAL_ARCH_INDEPENDENT "ARCH_INDEPENDENT")
endif()
write_basic_package_version_file("frozenConfigVersion.cmake"
VERSION ${PROJECT_VERSION}
COMPATIBILITY SameMajorVersion)
COMPATIBILITY SameMajorVersion
${OPTIONAL_ARCH_INDEPENDENT})

install(FILES "${PROJECT_BINARY_DIR}/frozenConfigVersion.cmake"
DESTINATION "${CMAKE_INSTALL_DATADIR}/cmake/frozen")
Expand Down

0 comments on commit 7e79c37

Please sign in to comment.