[kido] 01/01: Add a patch to fix link of unitests
Jose Luis Rivero
jrivero-guest at moszumanska.debian.org
Tue Aug 30 21:57:23 UTC 2016
This is an automated email from the git hooks/post-receive script.
jrivero-guest pushed a commit to branch master
in repository kido.
commit b806b31ff88c073600fb35065b22e014d02480ed
Author: Jose Luis Rivero <jrivero at osrfoundation.org>
Date: Tue Aug 30 21:56:55 2016 +0000
Add a patch to fix link of unitests
---
debian/patches/0005-link_flann_in_test.patch | 20 ++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 21 insertions(+)
diff --git a/debian/patches/0005-link_flann_in_test.patch b/debian/patches/0005-link_flann_in_test.patch
new file mode 100644
index 0000000..a62245e
--- /dev/null
+++ b/debian/patches/0005-link_flann_in_test.patch
@@ -0,0 +1,20 @@
+Description: Need to add flann to link in tests
+Author: Jose Luis Rivero <jrivero at osrfoundation.org>
+Forwarded: No
+Last-Update: 2016-08-30
+
+diff --git a/unittests/CMakeLists.txt b/unittests/CMakeLists.txt
+index 4afb38a..3ab22bd 100644
+--- a/unittests/CMakeLists.txt
++++ b/unittests/CMakeLists.txt
+@@ -72,6 +72,10 @@ foreach(test ${tests})
+ target_link_libraries(${base} kido kido-utils gtest)
+ endif()
+
++ if (${base} STREQUAL "testNearestNeighbor")
++ target_link_libraries(${base} ${FLANN_LIBRARIES})
++ endif()
++
+ set_target_properties(${base} PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/tests")
+
+ # Add the executable if not to be ignored
diff --git a/debian/patches/series b/debian/patches/series
index 7d3fb42..cb217fc 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,3 +2,4 @@
0002-do-not-use-msse2.patch
0003-use-std-shared-pointers.patch
0004-fix-tinyxml-constant.patch
+0005-link_flann_in_test.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/kido.git
More information about the debian-science-commits
mailing list