mirror of
https://gitee.com/openharmony/third_party_spirv-headers
synced 2025-02-17 05:58:00 +00:00
Merge pull request #273 from Tachi107/patch-1
build: use ARCH_INDEPENDENT if possible
This commit is contained in:
commit
82becc8a8a
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user