Skip to content

Commit b4f22a0

Browse files
AnastaZIukdeprilula28
authored andcommitted
make dxcompiler target capable of compiling in Nabla solution with all configs, try various approaches and decide to resolve it by forcing lower standard to some of DXC targets. TODO: resolve MSVC_RUNTIME_LIBRARY issue for dxc executable
1 parent 514b321 commit b4f22a0

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

3rdparty/dxc/CMakeLists.txt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,22 @@ set(SPIRV_SKIP_EXECUTABLES ON CACHE INTERNAL "Skip SPIRV-Tools executable build"
3939

4040
add_subdirectory(dxc dxc)
4141

42+
set(_NBL_DXC_TARGETS_WITH_FORCED_LOW_STANDARD_
43+
dxcompiler
44+
LLVMSupport
45+
llvm-tblgen
46+
clangCodeGen
47+
LLVMDxilDia
48+
LLVMAnalysis
49+
LLVMTransformUtils
50+
LLVMScalarOpts
51+
)
52+
53+
foreach(_NBL_DXC_TARGET_WITH_FORCED_LOW_STANDARD_ IN LISTS _NBL_DXC_TARGETS_WITH_FORCED_LOW_STANDARD_)
54+
set_property(TARGET ${_NBL_DXC_TARGET_WITH_FORCED_LOW_STANDARD_} PROPERTY CXX_STANDARD 11)
55+
endforeach()
56+
57+
4258
# TODO: change them
4359
#set(_DXC_CURRENT_CONFIG_ "$<IF:$<CONFIG:Debug>,Debug,Release>")
4460
#set(DXC_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/dxc" CACHE INTERNAL "")

0 commit comments

Comments
 (0)