Files
guru/dev-cpp/safeint/files/safeint-3.0.28a-make-tests-optional.patch
Pavel Sobolev 341dfd553c dev-cpp/safeint: new package, add 3.0.28a
Signed-off-by: Pavel Sobolev <contact@paveloom.dev>
2025-08-19 16:26:53 +03:00

26 lines
665 B
Diff

From: Pavel Sobolev <contact@paveloom.dev>
Subject: [PATCH] Make tests optional.
Signed-off-by: Pavel Sobolev <contact@paveloom.dev>
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -22,11 +22,13 @@ set(CMAKE_CXX_STANDARD_REQUIRED True)
# - Intel (not regularly tested)
# other compilers on a best effort
-add_subdirectory(Test/ClangTest)
-add_subdirectory(Test/GccTest)
-add_subdirectory(Test/MsvcTest)
+include(CTest)
-enable_testing()
+if (BUILD_TESTING)
+ add_subdirectory(Test/ClangTest)
+ add_subdirectory(Test/GccTest)
+ add_subdirectory(Test/MsvcTest)
+endif()
add_library(SafeInt INTERFACE)
target_include_directories(SafeInt INTERFACE .)