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

warning with cmake 2.8.12.2:Argument not separated from preceding token by whitespace #586

Closed
dpinol opened this issue Feb 3, 2014 · 1 comment

Comments

@dpinol
Copy link

dpinol commented Feb 3, 2014

When compiling a dry package with cmake 2.8.12.2, I get this warning
You can try it with: https://github.com/dpinol/ros_tests/tree/master/cmake_policy

The fix consists in quoting the second argument of the add_custom_target call (escaping the echo's quotes)

~/svn/catkin_ws/ros_tests/cmake_policy$ make
mkdir -p bin
cd build && cmake -Wdev -DCMAKE_TOOLCHAIN_FILE=/opt/ros/hydro/share/ros/core/rosbuild/rostoolchain.cmake  ..
-- The C compiler identification is GNU 4.6.3
-- The CXX compiler identification is GNU 4.6.3
-- Check for working C compiler: /home/dani/bin/cc
-- Check for working C compiler: /home/dani/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /home/dani/branches_svn/scm/bin/utils/developer_utils/g++
-- Check for working CXX compiler: /home/dani/branches_svn/scm/bin/utils/developer_utils/g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found PythonInterp: /usr/bin/python (found version "2.7.3") 
CMake Warning (dev) at /opt/ros/hydro/share/ros/core/rosbuild/rosbuild.cmake:40 (include):
  Syntax Warning in cmake code at

    /opt/ros/hydro/share/ros/core/rosbuild/public.cmake:330:140

  Argument not separated from preceding token by whitespace.
Call Stack (most recent call first):
  CMakeLists.txt:2 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

[rosbuild] Building package cmake_policy
@dirk-thomas
Copy link
Member

Moved to ros/ros#44.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants