forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dev-ros/sound_play: fix build without FEATURES=test, bug #567466
Package-Manager: portage-2.2.26 Signed-off-by: Alexis Ballier <[email protected]>
- Loading branch information
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
commit ecdde483c81fb89e35f025ee3aacba7cd45528ab | ||
Author: Alexis Ballier <[email protected]> | ||
Date: Fri Dec 4 12:38:42 2015 +0100 | ||
|
||
sound_play: Fix build with -DCATKIN_ENABLE_TESTING=OFF. | ||
|
||
https://bugs.gentoo.org/show_bug.cgi?id=567466 | ||
|
||
diff --git a/sound_play/CMakeLists.txt b/sound_play/CMakeLists.txt | ||
index ada0b07..3f9604c 100644 | ||
--- a/sound_play/CMakeLists.txt | ||
+++ b/sound_play/CMakeLists.txt | ||
@@ -16,9 +16,11 @@ generate_messages(DEPENDENCIES actionlib_msgs) | ||
catkin_package(CATKIN_DEPENDS message_runtime actionlib_msgs | ||
INCLUDE_DIRS include) | ||
|
||
-catkin_add_nosetests(scripts/test) | ||
+if(CATKIN_ENABLE_TESTING) | ||
+ catkin_add_nosetests(scripts/test) | ||
|
||
-add_subdirectory(test) | ||
+ add_subdirectory(test) | ||
+endif() | ||
|
||
install(PROGRAMS | ||
scripts/playbuiltin.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters