Add GLSLANG_TESTS option

1 variable instead of ENABLE_CTEST and BUILD_TESTING.

OFF by default. See README.md for explanation.
This commit is contained in:
Juan Ramos 2023-11-30 12:33:36 -07:00 committed by arcady-lunarg
parent e854c8de10
commit 3b99124593
5 changed files with 22 additions and 23 deletions

View file

@ -34,7 +34,7 @@
# Suppress all warnings from external projects.
set_property(DIRECTORY APPEND PROPERTY COMPILE_OPTIONS -w)
if(BUILD_TESTING)
if(GLSLANG_TESTS)
if(TARGET gmock)
message(STATUS "Google Mock already configured - use it")
elseif(IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/googletest)