build: add cmake flag to skip mt unit tests

exclude mt test targets from ALL build

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2025-06-10 13:08:44 +00:00
committed by Compute-Runtime-Automation
parent a3bbfbc78f
commit 3b0b9f07a8
5 changed files with 152 additions and 146 deletions

View File

@@ -1,5 +1,5 @@
#
# Copyright (C) 2020-2021 Intel Corporation
# Copyright (C) 2020-2025 Intel Corporation
#
# SPDX-License-Identifier: MIT
#
@@ -7,7 +7,7 @@
set(BUILT_IN_KERNEL_DIR "${NEO_SOURCE_DIR}/shared/source/built_ins")
set(PLATFORM_SPECIFIC_TEST_TARGETS_FOLDER ult_product_targets)
if(NOT TARGET run_mt_unit_tests)
if(NOT TARGET run_mt_unit_tests AND NOT NEO_SKIP_MT_UNIT_TESTS)
add_custom_target(run_mt_unit_tests)
endif()