Skip to content

Commit be82e7f

Browse files
committed
fix compile errors & resolve SPIRV header includes after pulling clustered rendering, force BEFORE include policy to not browse for Vulkan SDK sources
1 parent 4fabab9 commit be82e7f

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

src/nbl/CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -484,10 +484,10 @@ if(NBL_STATIC_BUILD)
484484
else()
485485
target_link_libraries(Nabla PRIVATE SPIRV SPIRV-Tools SPIRV-Tools-opt)
486486
endif()
487-
target_include_directories(Nabla PUBLIC
488-
"${THIRD_PARTY_SOURCE_DIR}/dxc/dxc/include"
489-
"${THIRD_PARTY_SOURCE_DIR}/dxc/dxc/external/SPIRV-Tools/include"
490-
"${THIRD_PARTY_SOURCE_DIR}/dxc/dxc/external/SPIRV-Headers/include"
487+
target_include_directories(Nabla BEFORE
488+
PRIVATE "${THIRD_PARTY_SOURCE_DIR}/dxc/dxc/include"
489+
PRIVATE $<TARGET_PROPERTY:SPIRV-Tools-static,INCLUDE_DIRECTORIES>
490+
PRIVATE $<TARGET_PROPERTY:SPIRV-Headers,INCLUDE_DIRECTORIES>
491491
)
492492

493493
# nlohmann_json

src/nbl/asset/utils/ISPIRVOptimizer.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#include "nbl/asset/utils/ISPIRVOptimizer.h"
2-
3-
// quick fix to look for our SPIRV headers not from vulkan sdk
4-
#include "SPIRV-Tools/include/spirv-tools/optimizer.hpp"
2+
#include "spirv-tools/optimizer.hpp"
53

64
#include "nbl/core/declarations.h"
75
#include "nbl/core/IReferenceCounted.h"

0 commit comments

Comments
 (0)