Skip to content

Commit

Permalink
Use ARCH_INDEPENDENT option that is introduced in CMake 3.14
Browse files Browse the repository at this point in the history
  • Loading branch information
topazus authored and nemtrif committed Jun 25, 2023
1 parent 2ad9957 commit dbb2423
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,15 @@ if(UTF8_INSTALL)
set(DEF_INSTALL_CMAKE_DIR ${CMAKE_INSTALL_LIBDIR}/cmake/utf8cpp)
endif()

if(${CMAKE_VERSION} VERSION_GREATER "3.14")
set(OPTIONAL_ARCH_INDEPENDENT "ARCH_INDEPENDENT")
endif()

write_basic_package_version_file(
${CMAKE_CURRENT_BINARY_DIR}/utf8cppConfigVersion.cmake
VERSION ${PROJECT_VERSION}
COMPATIBILITY SameMajorVersion
${OPTIONAL_ARCH_INDEPENDENT}
)

configure_package_config_file(
Expand Down

0 comments on commit dbb2423

Please sign in to comment.