diff --git a/src/vsg/CMakeLists.txt b/src/vsg/CMakeLists.txt index 263122d5a..229faee43 100644 --- a/src/vsg/CMakeLists.txt +++ b/src/vsg/CMakeLists.txt @@ -268,7 +268,7 @@ set(LIBRARIES PUBLIC ) if (${VSG_SUPPORTS_ShaderCompiler}) - list(APPEND LIBRARIES PRIVATE glslang::glslang glslang::glslang-default-resource-limits glslang::SPIRV) + list(INSERT LIBRARIES 0 PRIVATE glslang::glslang glslang::glslang-default-resource-limits glslang::SPIRV) endif() # Check for std::atomic diff --git a/src/vsg/io/VSG.cpp b/src/vsg/io/VSG.cpp index 0096498fc..d03935cde 100644 --- a/src/vsg/io/VSG.cpp +++ b/src/vsg/io/VSG.cpp @@ -184,7 +184,7 @@ bool VSG::write(const vsg::Object* object, const vsg::Path& filename, ref_ptrmodule->code.clear(); glslang::GlslangToSpv(*(program->getIntermediate((EShLanguage)eshl_stage)), vsg_shader->module->code, &logger, &spvOptions); } }