Update CMakeLists.txt
authord3x0r <d3x0r@users.noreply.github.com>
Tue, 4 Jul 2017 13:00:04 +0000 (06:00 -0700)
committerGitHub <noreply@github.com>
Tue, 4 Jul 2017 13:00:04 +0000 (06:00 -0700)
OGLCompilersDLL/CMakeLists.txt

index 8edd143..08f5455 100644 (file)
@@ -7,5 +7,7 @@ if(WIN32)
     source_group("Source" FILES ${SOURCES})
 endif(WIN32)
 
-install(TARGETS OGLCompiler
-        ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
+if(ENABLE_GLSLANG_INSTALL)
+    install(TARGETS OGLCompiler
+            ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
+endif(ENABLE_GLSLANG_INSTALL)