From ed1b5293ac209aa04294ef6730f56e10b7c4cccb Mon Sep 17 00:00:00 2001 From: Shun Hasegawa Date: Thu, 12 Dec 2024 16:23:04 +0900 Subject: [PATCH] [audio_to_spectrogram] Fix when to use catkin_install_python Conditional branch introduced by https://github.com/jsk-ros-pkg/jsk_recognition/pull/2743 is wrong --- audio_to_spectrogram/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/audio_to_spectrogram/CMakeLists.txt b/audio_to_spectrogram/CMakeLists.txt index f3828e9d70..a20760df5f 100644 --- a/audio_to_spectrogram/CMakeLists.txt +++ b/audio_to_spectrogram/CMakeLists.txt @@ -17,7 +17,7 @@ install(DIRECTORY launch sample test DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION} USE_SOURCE_PERMISSIONS ) -if(NOT $ENV{ROS_DISTRO} STREQUAL "indigo") # on noetic it needs catkin_install_python to support Python3 and it does not work on indigo for some reason... +if($ENV{ROS_DISTRO} STREQUAL "indigo") # on noetic it needs catkin_install_python to support Python3 and it does not work on indigo for some reason... install(DIRECTORY scripts DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION} USE_SOURCE_PERMISSIONS