diff --git a/CMakeLists.txt b/CMakeLists.txt index 783c47b92..82b33bb45 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -170,13 +170,17 @@ find_host_package(PythonInterp) if("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux" OR "${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin") macro(spvtools_check_symbol_exports TARGET) - add_test(NAME spirv-tools-symbol-exports-${TARGET} - COMMAND ${PYTHON_EXECUTABLE} - ${spirv-tools_SOURCE_DIR}/utils/check_symbol_exports.py "$") + if (NOT "${SPIRV_SKIP_TESTS}") + add_test(NAME spirv-tools-symbol-exports-${TARGET} + COMMAND ${PYTHON_EXECUTABLE} + ${spirv-tools_SOURCE_DIR}/utils/check_symbol_exports.py "$") + endif() endmacro() else() macro(spvtools_check_symbol_exports TARGET) - message("Skipping symbol exports test for ${TARGET}") + if (NOT "${SPIRV_SKIP_TESTS}") + message("Skipping symbol exports test for ${TARGET}") + endif() endmacro() endif()