Skip to content

Commit

Permalink
Merge pull request #1274 from wkentaro/find-boost-lib-once
Browse files Browse the repository at this point in the history
[jsk_topic_tools] Find Boost_LIBRARIES once nodelt.cmake
  • Loading branch information
garaemon committed Dec 7, 2015
2 parents cbb0de2 + b647863 commit 1343565
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion jsk_topic_tools/cmake/nodelet.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ macro(jsk_nodelet _nodelet_cpp _nodelet_class
rosbuild_add_executable(${_single_nodelet_exec_name} build/${_single_nodelet_exec_name}.cpp)
else(${USE_ROSBUILD})
add_executable(${_single_nodelet_exec_name} ${_single_nodelet_exec_name}.cpp)
find_package(Boost REQUIRED COMPONENTS program_options)
if(NOT Boost_PROGRAM_OPTIONS_LIBRARY)
find_package(Boost REQUIRED COMPONENTS program_options)
endif()
target_link_libraries(${_single_nodelet_exec_name} ${catkin_LIBRARIES} ${Boost_LIBRARIES})
endif(${USE_ROSBUILD})
if (${ARGC} GREATER 4)
Expand Down

0 comments on commit 1343565

Please sign in to comment.