Skip to content

Commit

Permalink
Do not build glslang-testsuite when ENABLE_CTEST is disabled (#2240)
Browse files Browse the repository at this point in the history
  • Loading branch information
nihui authored May 21, 2020
1 parent 6f723eb commit a0cce73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ if(ENABLE_CTEST)
add_subdirectory(gtests)
endif()

if(BUILD_TESTING)
if(ENABLE_CTEST AND 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 "")
Expand All @@ -236,4 +236,4 @@ if(BUILD_TESTING)
add_test(NAME glslang-testsuite
COMMAND bash ${IGNORE_CR_FLAG} runtests ${RESULTS_PATH} ${VALIDATOR_PATH} ${REMAP_PATH}
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/Test/)
endif(BUILD_TESTING)
endif()

0 comments on commit a0cce73

Please sign in to comment.