From: dan sinclair Date: Wed, 16 Oct 2019 14:45:11 +0000 (-0400) Subject: Indenting X-Git-Tag: upstream/11.4.0~378^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7d623e1c90159e62b4597f3ac826e93d23e9d296;p=platform%2Fupstream%2Fglslang.git Indenting --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 62ee66a..44b687a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -182,31 +182,31 @@ endif(ENABLE_HLSL) add_subdirectory(gtests) if(BUILD_TESTING) - # glslang-testsuite runs a bash script on Windows. - # Make sure to use '-o igncr' flag to ignore carriage returns (\r). - set(IGNORE_CR_FLAG "") - if(WIN32) - set(IGNORE_CR_FLAG -o igncr) - endif() + # glslang-testsuite runs a bash script on Windows. + # Make sure to use '-o igncr' flag to ignore carriage returns (\r). + set(IGNORE_CR_FLAG "") + if(WIN32) + set(IGNORE_CR_FLAG -o igncr) + endif() - add_test(NAME glslang-testsuite - COMMAND bash ${IGNORE_CR_FLAG} runtests - WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/Test/) + add_test(NAME glslang-testsuite + COMMAND bash ${IGNORE_CR_FLAG} runtests + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/Test/) - if (CMAKE_CONFIGURATION_TYPES) - set_property(TEST glslang-testsuite APPEND PROPERTY - ENVIRONMENT GLSLANG_PATH=${CMAKE_CURRENT_BINARY_DIR}/StandAlone/$/glslangValidator) - set_property(TEST glslang-testsuite APPEND PROPERTY - ENVIRONMENT SPIRV_REMAP_PATH=${CMAKE_CURRENT_BINARY_DIR}/StandAlone/$/spirv-remap) - set_property(TEST glslang-testsuite APPEND PROPERTY - ENVIRONMENT GLSLANG_TEST_RESULTS=${CMAKE_CURRENT_BINARY_DIR}/$/localResults) - else(CMAKE_CONFIGURATION_TYPES) - set_property(TEST glslang-testsuite APPEND PROPERTY - ENVIRONMENT GLSLANG_PATH=${CMAKE_CURRENT_BINARY_DIR}/StandAlone/glslangValidator) - set_property(TEST glslang-testsuite APPEND PROPERTY - ENVIRONMENT SPIRV_REMAP_PATH=${CMAKE_CURRENT_BINARY_DIR}/StandAlone/spirv-remap) - set_property(TEST glslang-testsuite APPEND PROPERTY - ENVIRONMENT GLSLANG_TEST_RESULTS=${CMAKE_CURRENT_BINARY_DIR}/localResults) - endif(CMAKE_CONFIGURATION_TYPES) + if (CMAKE_CONFIGURATION_TYPES) + set_property(TEST glslang-testsuite APPEND PROPERTY + ENVIRONMENT GLSLANG_PATH=${CMAKE_CURRENT_BINARY_DIR}/StandAlone/$/glslangValidator) + set_property(TEST glslang-testsuite APPEND PROPERTY + ENVIRONMENT SPIRV_REMAP_PATH=${CMAKE_CURRENT_BINARY_DIR}/StandAlone/$/spirv-remap) + set_property(TEST glslang-testsuite APPEND PROPERTY + ENVIRONMENT GLSLANG_TEST_RESULTS=${CMAKE_CURRENT_BINARY_DIR}/$/localResults) + else(CMAKE_CONFIGURATION_TYPES) + set_property(TEST glslang-testsuite APPEND PROPERTY + ENVIRONMENT GLSLANG_PATH=${CMAKE_CURRENT_BINARY_DIR}/StandAlone/glslangValidator) + set_property(TEST glslang-testsuite APPEND PROPERTY + ENVIRONMENT SPIRV_REMAP_PATH=${CMAKE_CURRENT_BINARY_DIR}/StandAlone/spirv-remap) + set_property(TEST glslang-testsuite APPEND PROPERTY + ENVIRONMENT GLSLANG_TEST_RESULTS=${CMAKE_CURRENT_BINARY_DIR}/localResults) + endif(CMAKE_CONFIGURATION_TYPES) endif(BUILD_TESTING)