Skip to content

Commit

Permalink
CMakeLists.txt: on roslaunch 1.11.1, roslaunch_add_file check fails w…
Browse files Browse the repository at this point in the history
…ith unsupported doc attributes
  • Loading branch information
k-okada committed Aug 25, 2016
1 parent 0c6bb02 commit a644d47
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -257,9 +257,13 @@ install(DIRECTORY launch test
## test
if(CATKIN_ENABLE_TESTING)
find_package(catkin REQUIRED COMPONENTS rostest roslaunch)
file(GLOB LAUNCH_FILES launch/*.launch)
foreach(LAUNCH_FILE ${LAUNCH_FILES})
roslaunch_add_file_check(${LAUNCH_FILE})
endforeach()
if(roslaunch_VERSION VERSION_LESS "1.11.1")
message(WARNING "roslaunch_add_file check fails with unsupported doc attributes ${roslaunch_VERSION}")
else()
file(GLOB LAUNCH_FILES launch/*.launch)
foreach(LAUNCH_FILE ${LAUNCH_FILES})
roslaunch_add_file_check(${LAUNCH_FILE})
endforeach()
endif()
add_subdirectory(test)
endif()

0 comments on commit a644d47

Please sign in to comment.