Skip to content

Commit 78c003e

Browse files
authored
Merge pull request #1948 from RossBrunton/ross/fuzztests
[CMake] Add flag to disable fuzztesting
2 parents f833605 + 070c975 commit 78c003e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ FetchContent_Declare(
1212

1313
set(UR_TEST_DEVICES_COUNT 1 CACHE STRING "Count of devices on which conformance and adapters tests will be run")
1414
set(UR_TEST_PLATFORMS_COUNT 1 CACHE STRING "Count of platforms on which conformance and adapters tests will be run")
15+
set(UR_TEST_FUZZTESTS ON CACHE BOOL "Run fuzz tests if using clang and UR_DPCXX is specified")
1516
# For Windows: Prevent overriding the parent project's compiler/linker settings
1617
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
1718
FetchContent_MakeAvailable(googletest)
@@ -30,6 +31,6 @@ add_subdirectory(mock)
3031
if(UR_BUILD_TOOLS)
3132
add_subdirectory(tools)
3233
endif()
33-
if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND UR_DPCXX)
34+
if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND UR_DPCXX AND UR_TEST_FUZZTESTS)
3435
add_subdirectory(fuzz)
3536
endif()

0 commit comments

Comments
 (0)