Only install/test if PROJECT_IS_TOP_LEVEL

Further remove installing glslangtests. There isn't a need to do
that. glslangtests isn't a deliverable.
This commit is contained in:
Juan Ramos 2023-12-01 15:07:03 -07:00 committed by arcady-lunarg
parent 3b99124593
commit cf1fbbff44
7 changed files with 39 additions and 51 deletions

View file

@ -227,7 +227,7 @@ endif()
################################################################################
# install
################################################################################
if(ENABLE_GLSLANG_INSTALL)
if(PROJECT_IS_TOP_LEVEL)
install(TARGETS glslang EXPORT glslang-targets)
if(NOT BUILD_SHARED_LIBS)
install(TARGETS MachineIndependent EXPORT glslang-targets)