Commits

Anonymous committed 4aa7514 Draft

Fix #291. Don't use LDFLAGS in target_link_libraries.

On systems where ROS groovy is installed, the libraries urdfdom and
console_bridge are found. In that case, the librarie's LDFLAGS were added in
target_link_libraries which leads to a broken linker command and causes linking
to fail.

Comments (0)

Files changed (1)

gazebo/sdf/interface/CMakeLists.txt

     gazebo_ode
     ${urdfdom_headers_LIBRARIES}
     ${urdfdom_LIBRARIES}
-    ${console_bridge_LIBRARIES}
-    ${urdfdom_LDFLAGS}
-    ${console_bridge_LDFLAGS})
+    ${console_bridge_LIBRARIES})
 else(HAVE_URDFDOM AND HAVE_URDFDOM_HEADERS)
   target_link_libraries(gazebo_sdf_interface
     gazebo_common ${tinyxml_libraries} ${Boost_LIBRARIES})