You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
set(GLSLANG_MIN_VERSION "15"CACHESTRING"glslang 14 is the earliest version that we think installs itself properly on all platforms. Other platforms may be able to use an earlier version")
message(WARNING "glslang not found. ShaderCompile support disabled.")
61
53
set(VSG_SUPPORTS_ShaderCompiler 0)
@@ -98,7 +90,7 @@ if (VSG_SUPPORTS_Windowing)
98
90
endif()
99
91
endif()
100
92
101
-
option(VSG_USE_dynamic_cast "Use dynamic_cast in vsg::Object::cast<T>(), 0 for off, 1 for enabled."OFF)
93
+
option(VSG_USE_dynamic_cast "Use dynamic_cast in vsg::Object::cast<T>(), default is OFF and uses VSG native casting which provides 2-3x faster than using dynamic_cast<>."OFF)
102
94
103
95
# this line needs to be after the call to setup_build_vars()
To link your lib/application to required dependencies you'll need:
178
174
179
175
target_link_libraries(mytargetname vsg::vsg)
180
176
181
177
This will tell CMake to set up all the appropriate include paths, libs and any definitions (such as the VSG_SHARED_LIBRARY #define that is required under Windows with shared library builds to select the correct declspec().)
182
178
179
+
This will also tell CMake that your minimum C++ standard is 17.
180
+
183
181
For example, a bare minimum CMakeLists.txt file to compile a single file application would be:
0 commit comments