Skip to content

Commit c1fba59

Browse files
committed
Port VSG_SUPPORTS_ShaderCompiler to option
1 parent 4feb683 commit c1fba59

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ find_package(Threads REQUIRED)
4141
set(VSG_MAX_INSTRUMENTATION_LEVEL 1 CACHE STRING "Set the instrumentation level to build into the VSG library, 0 for off, 1 coarse grained, 2 medium, 3 fine grained." )
4242

4343
# Enable/disable shader compilation support that pulls in glslang
44-
set(VSG_SUPPORTS_ShaderCompiler 1 CACHE STRING "Optional shader compiler support, 0 for off, 1 for enabled." )
44+
option(VSG_SUPPORTS_ShaderCompiler "Optional shader compiler support" ON)
4545
if (VSG_SUPPORTS_ShaderCompiler)
4646

4747
# Try looking for glslang 15 first.

src/vsg/core/Version.h.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ extern "C"
3737
#define VSG_MAX_INSTRUMENTATION_LEVEL @VSG_MAX_INSTRUMENTATION_LEVEL@
3838

3939
/// vsg::ShaderCompiler support enabled when 1, disabled when 0
40-
#define VSG_SUPPORTS_ShaderCompiler @VSG_SUPPORTS_ShaderCompiler@
40+
#cmakedefine01 VSG_SUPPORTS_ShaderCompiler
4141

4242
/// vsg::ShaderCompiler optimizer support enabled when 1, disabled when 0
4343
#cmakedefine01 VSG_SUPPORTS_ShaderOptimizer

0 commit comments

Comments
 (0)