From: | "Tim Harder (radhermit)" <radhermit@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in dev-libs/tinyxml2/files: tinyxml2-1.0.1_p20120531-test.patch |
Date: | Thu, 31 May 2012 10:16:12 |
Message-Id: | 20120531101602.2DBBD2004C@flycatcher.gentoo.org |
1 | radhermit 12/05/31 10:16:02 |
2 | |
3 | Added: tinyxml2-1.0.1_p20120531-test.patch |
4 | Log: |
5 | Initial import. Used by recent versions of libmediainfo (fixes bug #414647 by hasufell). |
6 | |
7 | (Portage version: 2.2.0_alpha108/cvs/Linux x86_64) |
8 | |
9 | Revision Changes Path |
10 | 1.1 dev-libs/tinyxml2/files/tinyxml2-1.0.1_p20120531-test.patch |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/tinyxml2/files/tinyxml2-1.0.1_p20120531-test.patch?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/tinyxml2/files/tinyxml2-1.0.1_p20120531-test.patch?rev=1.1&content-type=text/plain |
14 | |
15 | Index: tinyxml2-1.0.1_p20120531-test.patch |
16 | =================================================================== |
17 | --- tinyxml2-1.0.1_p20120531/CMakeLists.txt |
18 | +++ tinyxml2-1.0.1_p20120531/CMakeLists.txt |
19 | @@ -55,10 +55,13 @@ |
20 | VERSION "${GENERIC_LIB_VERSION}" |
21 | SOVERSION "${GENERIC_LIB_SOVERSION}") |
22 | |
23 | -add_executable(test xmltest.cpp) |
24 | -add_dependencies(test tinyxml2) |
25 | -add_dependencies(test ${TARGET_DATA_COPY}) |
26 | -target_link_libraries(test tinyxml2) |
27 | +set(BUILD_TEST OFF CACHE BOOL "Set to ON to build tests") |
28 | +if(BUILD_TEST) |
29 | + add_executable(test xmltest.cpp) |
30 | + add_dependencies(test tinyxml2) |
31 | + add_dependencies(test ${TARGET_DATA_COPY}) |
32 | + target_link_libraries(test tinyxml2) |
33 | +endif(BUILD_TEST) |
34 | |
35 | |
36 | if(BUILD_STATIC_LIBS) |