Add a CMake option to disable compilation of HLSL input support.
This commit is contained in:
parent
5d89d4d483
commit
84eabf7ea7
3 changed files with 30 additions and 4 deletions
|
|
@ -6,6 +6,8 @@ option(ENABLE_GLSLANG_BINARIES "Builds glslangValidator and spirv-remap" ON)
|
|||
|
||||
option(ENABLE_NV_EXTENSIONS "Enables support of Nvidia-specific extensions" ON)
|
||||
|
||||
option(DISABLE_HLSL "Disables HLSL input support" OFF)
|
||||
|
||||
enable_testing()
|
||||
|
||||
set(CMAKE_INSTALL_PREFIX "install" CACHE STRING "prefix")
|
||||
|
|
@ -20,6 +22,10 @@ if(ENABLE_NV_EXTENSIONS)
|
|||
add_definitions(-DNV_EXTENSIONS)
|
||||
endif(ENABLE_NV_EXTENSIONS)
|
||||
|
||||
if(DISABLE_HLSL)
|
||||
add_definitions(-DDISABLE_HLSL)
|
||||
endif(DISABLE_HLSL)
|
||||
|
||||
if(WIN32)
|
||||
set(CMAKE_DEBUG_POSTFIX "d")
|
||||
include(ChooseMSVCCRT.cmake)
|
||||
|
|
@ -63,5 +69,7 @@ if(ENABLE_GLSLANG_BINARIES)
|
|||
add_subdirectory(StandAlone)
|
||||
endif()
|
||||
add_subdirectory(SPIRV)
|
||||
add_subdirectory(hlsl)
|
||||
if(NOT DISABLE_HLSL)
|
||||
add_subdirectory(hlsl)
|
||||
endif()
|
||||
add_subdirectory(gtests)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue