mirror of
https://github.com/KhronosGroup/SPIRV-Tools
synced 2024-10-18 11:10:05 +00:00
Align git-sync-deps and CMake to use external/spirv-headers by default (#4963)
This should help with avoiding mistakes such as the one that happened under #4958. Signed-off-by: Kevin Petit <kevin.petit@arm.com> Change-Id: I922f02e25c507f3412e0e7a99f525fb617b2d426 Signed-off-by: Kevin Petit <kevin.petit@arm.com>
This commit is contained in:
parent
af15e5adea
commit
57fb3c7a3f
6
external/CMakeLists.txt
vendored
6
external/CMakeLists.txt
vendored
@ -30,11 +30,7 @@ if (DEFINED SPIRV-Headers_SOURCE_DIR)
|
||||
# This allows flexible position of the SPIRV-Headers repo.
|
||||
set(SPIRV_HEADER_DIR ${SPIRV-Headers_SOURCE_DIR})
|
||||
else()
|
||||
if (IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/SPIRV-Headers)
|
||||
set(SPIRV_HEADER_DIR ${CMAKE_CURRENT_SOURCE_DIR}/SPIRV-Headers)
|
||||
else()
|
||||
set(SPIRV_HEADER_DIR ${CMAKE_CURRENT_SOURCE_DIR}/spirv-headers)
|
||||
endif()
|
||||
set(SPIRV_HEADER_DIR ${CMAKE_CURRENT_SOURCE_DIR}/spirv-headers)
|
||||
endif()
|
||||
|
||||
if (IS_DIRECTORY ${SPIRV_HEADER_DIR})
|
||||
|
Loading…
Reference in New Issue
Block a user