[Bug 751] New: Warning when making bfl


Summary: Warning when making bfl
Product: BFL
Version: trunk
Platform: All
OS/Version: All
Status: NEW
Severity: minor
Priority: P3
Component: build system
AssignedTo: bfl [..] ...
ReportedBy: tinne [dot] delaet [..] ...
CC: bfl [..] ...
Estimated Hours: 0.0

Still have to solve the following warning:

Warning: Source file
"/home/fiep/maintain_bfl/branch-0.7/src/bindings/rtt/bfl_toolkit.cpp" is listed
multiple times for target "orocos-bfl_toolkit-gnulinux".

CMake Warning (dev) at src/bindings/rtt/CMakeLists.txt:15 (ADD_LIBRARY):
Policy CMP0003 should be set before this line. Add code such as

if(COMMAND cmake_policy)
cmake_policy(SET CMP0003 NEW)
endif(COMMAND cmake_policy)

as early as possible but after the most recent call to
cmake_minimum_required or cmake_policy(VERSION). This warning appears
because target "orocos-bfl_toolkit-gnulinux" links to some libraries for
which the linker must search:

orocos-rtt-gnulinux, orocos-rtt-gnulinux

and other libraries with known full path:


CMake is adding directories in the second list to the linker search path in
case they are needed to find libraries from the first list (for backwards
compatibility with CMake 2.4). Set policy CMP0003 to OLD or NEW to enable
or disable this behavior explicitly. Run "cmake --help-policy CMP0003" for
more information.
Call Stack (most recent call first):
src/bindings/rtt/CMakeLists.txt:43 (ADD_LIBRARY)
This warning is for project developers. Use -Wno-dev to suppress it.