查看: 1274|回复: 2

CMAKE编译VPB的问题

[复制链接]

该用户从未签到

发表于 2010-8-14 13:09:34 | 显示全部楼层 |阅读模式
大家好,我是新手,在用CMAKE编译VPB的时候
出现以下如图问题,编译生成的sln不成功
请指点 谢谢
Configuring done
CMake Warning (dev) at src/vpb/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 "vpb" links to some libraries for which the linker must
search:

glu32, opengl32, glu32, opengl32

and other libraries with known full path:

F:/gdal_runtime/lib/gdal_i.lib
E:/osg/OpenSceneGraph-2.8.2/BUILD/lib/osg.lib

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.

该用户从未签到

发表于 2010-8-16 08:27:42 | 显示全部楼层
这个警告信息并不会影响最终的结果,您应该是遇到了其他错误,但是您并没有在这里说明

该用户从未签到

 楼主| 发表于 2010-8-17 10:47:01 | 显示全部楼层
谢谢array版主,已经解决
您需要登录后才可以回帖 登录 | 注册

本版积分规则

OSG中国官方论坛-有您OSG在中国才更好

网站简介:osgChina是国内首个三维相关技术开源社区,旨在为国内更多的技术开发人员提供最前沿的技术资讯,为更多的三维从业者提供一个学习、交流的技术平台。

联系我们

  • 工作时间:09:00--18:00
  • 反馈邮箱:1315785073@qq.com
快速回复 返回顶部 返回列表