Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New CMake warning in catkin with version 2.8.7 (latest on ubuntu 12.04) #452

Closed
jbohren opened this issue Jun 28, 2013 · 2 comments
Closed
Assignees

Comments

@jbohren
Copy link
Member

jbohren commented Jun 28, 2013

CMake Warning (dev) at /home/jbohren/ws/groovy/davinci/devel/share/ros_control_gazebo_plugin/cmake/ros_control_gazebo_pluginConfig.cmake:61 (if):
  given arguments:

    "TRUE"

  An argument named "TRUE" appears in a conditional statement.  Policy
  CMP0012 is not set: if() recognizes numbers and boolean constants.  Run
  "cmake --help-policy CMP0012" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.
Call Stack (most recent call first):
  /opt/ros/groovy/share/catkin/cmake/catkinConfig.cmake:72 (find_package)
  intuitive_research_kit/irk_gazebo_plugins/CMakeLists.txt:4 (find_package)

Happens when building this package, and others: https://github.com/jhu-lcsr/ros_control_gazebo

@dirk-thomas
Copy link
Member

According to you command line you are using groovy. I tried checking out the groovy-devel branch of ros_control_gazebo but when building it doesn't find the dependency gazebo_ros. As far as I can see that is not a package in groovy (only in hydro).

Can you please provide a rosinstall file of a workspace to reproduce the issue?

@dirk-thomas
Copy link
Member

The packages for which this policy error is printed are likely using a too old minimum required version for CMake. catkin recommends to use (at least) cmake_minimum_required(VERSION 2.8.3) (see http://ros.org/wiki/catkin/CMakeLists.txt#CMake_Version).

dirk-thomas added a commit that referenced this issue Jun 29, 2013
@ghost ghost assigned dirk-thomas Jun 29, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants