summaryrefslogtreecommitdiff
blob: e23490a1c3e97bc5cca54f20d21c6a9e4860a366 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
commit ecdde483c81fb89e35f025ee3aacba7cd45528ab
Author: Alexis Ballier <aballier@gentoo.org>
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