[Bf-committers] cmake warning
H
hans at lambermont.dyndns.org
Sat Aug 23 14:57:34 CEST 2008
Hi Cmake guru's, I got this when building blender on FreeBSD 7.0-RELEASE :
cmake> cmake -G "Unix Makefiles" ../blender-2-47-release/
-- Configuring done
CMake Warning (dev) at source/creator/CMakeLists.txt:70 (ADD_EXECUTABLE):
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 "blender" links to some libraries for which the linker
must search:
jpeg, png, z, -lpthread, -lXi -lutil -lc -lm -lpthread -lstdc++,
freetype Half, IlmImf, Iex, Imath, jpeg, png, z, -lpthread -lXi -lutil
-lc -lm -lpthread -lstdc++, freetype, Half, IlmImf, Iex, Imath
and other libraries with known full path:
/home/hans/src/cmake/lib/libsrc.a
/usr/local/lib/libGL.so
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. This warning is for
project developers. Use -Wno-dev to suppress it.
I assume this is something 'you' want to fix :)
regards,
Hans Lambermont
More information about the Bf-committers
mailing list