Override CMAKE_INSTALL_PREFIX only if ENABLE_GLSLANG_INSTALL is ON
This commit is contained in:
parent
c0a322f5f0
commit
f1cc215e55
1 changed files with 1 additions and 1 deletions
|
|
@ -109,7 +109,7 @@ option(ENABLE_OPT "Enables spirv-opt capability if present" ON)
|
||||||
option(ENABLE_PCH "Enables Precompiled header" ON)
|
option(ENABLE_PCH "Enables Precompiled header" ON)
|
||||||
option(ENABLE_CTEST "Enables testing" ON)
|
option(ENABLE_CTEST "Enables testing" ON)
|
||||||
|
|
||||||
if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT AND WIN32)
|
if(ENABLE_GLSLANG_INSTALL AND CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT AND WIN32)
|
||||||
set(CMAKE_INSTALL_PREFIX "install" CACHE STRING "..." FORCE)
|
set(CMAKE_INSTALL_PREFIX "install" CACHE STRING "..." FORCE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue