aboutsummaryrefslogtreecommitdiffstats
path: root/devel/simpleini/files/patch-CMakeLists.txt
blob: 55a6a21cdb3473e8c375cc9e438bd4ec17c735bf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- CMakeLists.txt.orig	2025-11-13 10:32:32 UTC
+++ CMakeLists.txt
@@ -80,7 +80,7 @@ install(FILES
 )
 
 # only build tests when top level and testing enabled
-if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
+if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME AND SIMPLEINI_BUILD_TESTS)
 	include(CTest)
 	if(BUILD_TESTING)
 		add_subdirectory(tests)