Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/KhronosGroup/SPIRV-Headers.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaun Krisch <raun.krisch@gmail.com>2022-04-13 19:06:44 +0300
committerGitHub <noreply@github.com>2022-04-13 19:06:44 +0300
commit82becc8a8a92e509d3d8d635889da0a3c17d0606 (patch)
treeede6ba8e155006714fdae9594ad74a09b5ff9820
parent9c3fd01c8a91761b6e4be97ff4f13de76e779128 (diff)
parentd9234dee3c8e9f5ee4c5ab4223f9d0e8b725fa6c (diff)
Merge pull request #273 from Tachi107/patch-1
build: use ARCH_INDEPENDENT if possible
-rw-r--r--CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f19390a..147f7ad 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -89,9 +89,14 @@ if (SPIRV_HEADERS_ENABLE_INSTALL)
set(namespace "${PROJECT_NAME}::")
include(CMakePackageConfigHelpers)
+
+ if (NOT CMAKE_VERSION VERSION_LESS 3.14)
+ set(arch_independent_str ARCH_INDEPENDENT)
+ endif()
write_basic_package_version_file(
"${version_config}"
COMPATIBILITY SameMajorVersion
+ ${arch_independent_str}
)
configure_package_config_file(