Skip to content

Commit b886419

Browse files
authored
Merge pull request KhronosGroup#2864 from scribam/cmake-install-prefix
Override CMAKE_INSTALL_PREFIX only if ENABLE_GLSLANG_INSTALL is ON
2 parents bd6e3fb + f1cc215 commit b886419

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ option(ENABLE_OPT "Enables spirv-opt capability if present" ON)
109109
option(ENABLE_PCH "Enables Precompiled header" ON)
110110
option(ENABLE_CTEST "Enables testing" ON)
111111

112-
if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT AND WIN32)
112+
if(ENABLE_GLSLANG_INSTALL AND CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT AND WIN32)
113113
set(CMAKE_INSTALL_PREFIX "install" CACHE STRING "..." FORCE)
114114
endif()
115115

0 commit comments

Comments
 (0)