summaryrefslogtreecommitdiff
path: root/dev-libs/tinyxml2/files/tinyxml2-1.0.9_p20121123-test.patch
blob: a6842eecb6e5d364f78dbf1f125531238e3fb39e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- tinyxml2-1.0.9_p20121123/CMakeLists.txt
+++ tinyxml2-1.0.9_p20121123/CMakeLists.txt
@@ -55,10 +55,13 @@
 	VERSION "${GENERIC_LIB_VERSION}"
 	SOVERSION "${GENERIC_LIB_SOVERSION}")
 
-add_executable(test xmltest.cpp)
-add_dependencies(test tinyxml2)
-add_dependencies(test ${TARGET_DATA_COPY})
-target_link_libraries(test tinyxml2)
+set(BUILD_TEST OFF CACHE BOOL "Set to ON to build tests")
+if(BUILD_TEST)
+	add_executable(test xmltest.cpp)
+	add_dependencies(test tinyxml2)
+	add_dependencies(test ${TARGET_DATA_COPY})
+	target_link_libraries(test tinyxml2)
+endif(BUILD_TEST)
 
 
 if(BUILD_STATIC_LIBS)