summaryrefslogtreecommitdiff
path: root/dev-cpp/simpleini/files/simpleini-4.22-disable-tests.patch
blob: 39347e75f769a5e702d58f272e48edfedc9a7638 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
https://github.com/brofield/simpleini/pull/75
https://github.com/brofield/simpleini/commit/f7862c3dd7ad35becc2741f268e3402e89a37666
From: Alexandre Bouvier <contact@amb.tf>
Date: Tue, 2 Jan 2024 10:54:44 +0100
Subject: [PATCH 2/2] cmake: really disable tests (#75)
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -72,5 +72,7 @@ target_include_directories(${PROJECT_NAME} INTERFACE
 
 if(IS_TOPLEVEL_PROJECT)
 	include(CTest)
-	add_subdirectory(tests)
+	if(BUILD_TESTING)
+		add_subdirectory(tests)
+	endif()
 endif()