|
3 | 3 | Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries. |
4 | 4 | Copyright (c) 2026, Stephen Saunders |
5 | 5 |
|
6 | | - SPDX-License-Identifier: BSD-3-Clause-Clear |
| 6 | + SPDX-License-Identifier: Apache-2.0 |
7 | 7 |
|
8 | | - Licensed under the BSD-3-Clause-Clear License the "License"; |
| 8 | + Licensed under the Apache License, Version 2.0 the "License"; |
9 | 9 | you may not use this file except in compliance with the License. |
10 | 10 | You may obtain a copy of the License at |
11 | 11 |
|
12 | | - https://spdx.org/licenses/BSD-3-Clause-Clear.html |
| 12 | + http://www.apache.org/licenses/LICENSE-2.0 |
13 | 13 |
|
14 | 14 | Unless required by applicable law or agreed to in writing, software |
15 | 15 | distributed under the License is distributed on an "AS IS" BASIS, |
|
25 | 25 | ]] |
26 | 26 |
|
27 | 27 | # As per upstream CMake recommendation in https://gitlab.kitware.com/cmake/cmake/-/issues/27661 |
28 | | -# for iOS we can use a toolchain file to augment search paths and simplify command line |
| 28 | +# for iOS we can use a toolchain file to set up search paths and simplify the command line |
29 | 29 | # |
30 | 30 | # iOS/setup-env.sh will first take care of defining the VULKAN_SDK environment variable |
31 | 31 | # Toolchain file shall define: |
|
34 | 34 | # - Build only the active arch for devices and simulator |
35 | 35 | # - Export the $ENV{VULKAN_SDK} variable to `CMAKE_FIND_ROOT_PATH` |
36 | 36 | # |
37 | | -# Note: We augment CMAKE_FIND_ROOT_PATH to find the iOS Vulkan frameworks from the SDK. |
| 37 | +# Note: We define CMAKE_FIND_ROOT_PATH to locate the iOS Vulkan frameworks from the SDK. |
38 | 38 | # We don't define CMAKE_OSX_SYSROOT here since we need to build for both physical devices |
39 | 39 | # (iphoneos) and simulator (iphonesimulator) - do that instead on the cmake command line. |
40 | 40 |
|
41 | 41 | set(CMAKE_SYSTEM_NAME iOS) |
42 | 42 | set(CMAKE_OSX_DEPLOYMENT_TARGET 16.3) |
43 | 43 | set(CMAKE_XCODE_ATTRIBUTE_ONLY_ACTIVE_ARCH YES) |
44 | | -list(APPEND CMAKE_FIND_ROOT_PATH "$ENV{VULKAN_SDK}") |
| 44 | +set(CMAKE_FIND_ROOT_PATH "$ENV{VULKAN_SDK}") |
0 commit comments