]> git.pld-linux.org Git - packages/mysql-connector-c++.git/commitdiff
- skip building tests when not testing
authorElan Ruusamäe <glen@pld-linux.org>
Fri, 11 May 2012 22:08:33 +0000 (22:08 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    mysql-connector-c++.spec -> 1.7

mysql-connector-c++.spec

index eb60ec23e6bfd38be8281565f028a440b4f000dd..e9d1cff2015301cac7d4176c4b0ea7ee542a537c 100644 (file)
@@ -67,6 +67,10 @@ Statyczna biblioteka mysqlcppconn.
 %{__sed} -i -e 's/lib$/%{_lib}/' driver/CMakeLists.txt
 %{__chmod} -x examples/*.cpp examples/*.txt
 
+%if %{without tests}
+%{__sed} -i -e '/ADD_SUBDIRECTORY.*test/d' CMakeLists.txt
+%endif
+
 # Save examples to keep directory clean (for doc)
 %{__mkdir} _doc_examples
 %{__cp} -pr examples _doc_examples
This page took 0.126128 seconds and 4 git commands to generate.