Unverified Commit 4bbc8a89 authored by Gabi Melman's avatar Gabi Melman Committed by GitHub

Merge pull request #1228 from scatter-dev/arch_independent

Added ARCH_INDEPENDENT option
parents e771f4e7 c87882e8
# Copyright(c) 2019 spdlog authors # Copyright(c) 2019 spdlog authors
# Distributed under the MIT License (http://opensource.org/licenses/MIT) # Distributed under the MIT License (http://opensource.org/licenses/MIT)
cmake_minimum_required(VERSION 3.2) cmake_minimum_required(VERSION 3.14)
#--------------------------------------------------------------------------------------- #---------------------------------------------------------------------------------------
# Start spdlog project # Start spdlog project
...@@ -197,7 +197,11 @@ if (SPDLOG_INSTALL) ...@@ -197,7 +197,11 @@ if (SPDLOG_INSTALL)
include(CMakePackageConfigHelpers) include(CMakePackageConfigHelpers)
configure_file("${project_config_in}" "${project_config_out}" @ONLY) configure_file("${project_config_in}" "${project_config_out}" @ONLY)
if(${CMAKE_VERSION} VERSION_GREATER 3.13)
write_basic_package_version_file("${version_config_file}" COMPATIBILITY SameMajorVersion ARCH_INDEPENDENT)
else()
write_basic_package_version_file("${version_config_file}" COMPATIBILITY SameMajorVersion) write_basic_package_version_file("${version_config_file}" COMPATIBILITY SameMajorVersion)
endif()
install(FILES install(FILES
"${project_config_out}" "${project_config_out}"
"${version_config_file}" DESTINATION "${export_dest_dir}") "${version_config_file}" DESTINATION "${export_dest_dir}")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment