From 57a2b22d34204a39f23756ae29725303c52a648e Mon Sep 17 00:00:00 2001 From: d3x0r Date: Tue, 4 Jul 2017 05:59:03 -0700 Subject: [PATCH] Update CMakeLists.txt --- gtests/CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gtests/CMakeLists.txt b/gtests/CMakeLists.txt index 2616ac0..15b73f4 100644 --- a/gtests/CMakeLists.txt +++ b/gtests/CMakeLists.txt @@ -28,8 +28,10 @@ if(BUILD_TESTING) add_executable(glslangtests ${TEST_SOURCES}) set_property(TARGET glslangtests PROPERTY FOLDER tests) glslang_set_link_args(glslangtests) - install(TARGETS glslangtests - RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) + if(ENABLE_GLSLANG_INSTALL) + install(TARGETS glslangtests + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) + endif(ENABLE_GLSLANG_INSTALL) set(GLSLANG_TEST_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/../Test") # Supply a default test root directory, so that manual testing -- 2.7.4