|
警告如下:
WARNING: Target "osgGIS" requests linking to directory "C:\Program Files\OpenSceneGraph\lib". Targets may link only to libraries. CMake is dropping the item.
CMake Warning (dev) at src/osgGIS/CMakeLists.txt:124 (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 "osgGIS" links to some libraries for which the linker must
search:
glu32, opengl32, glu32, opengl32
and other libraries with known full path:
C:/Program Files/OpenSceneGraph/lib/osgUtil.lib
C:/gdall16-compile/lib/gdal_i.lib
C:/osggis_3rdparty_win32_vs8/lib/lua51.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.
WARNING: Target "osgGIS" requests linking to directory "C:\Program Files\OpenSceneGraph\lib". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "osgGIS" requests linking to directory "C:\Program Files\OpenSceneGraph\lib". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "osgGIS" requests linking to directory "C:\Program Files\OpenSceneGraph\lib". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "osgGISProjects" requests linking to directory "C:\Program Files\OpenSceneGraph\lib". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "osgGISProjects" requests linking to directory "C:\Program Files\OpenSceneGraph\lib". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "osgGISProjects" requests linking to directory "C:\Program Files\OpenSceneGraph\lib". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "osgGISProjects" requests linking to directory "C:\Program Files\OpenSceneGraph\lib". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "app_osggis_build" requests linking to directory "C:\Program Files\OpenSceneGraph\lib". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "app_osggis_build" requests linking to directory "C:\Program Files\OpenSceneGraph\lib". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "app_osggis_build" requests linking to directory "C:\Program Files\OpenSceneGraph\lib". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "app_osggis_makelayer" requests linking to directory "C:\Program Files\OpenSceneGraph\lib". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "app_osggis_makelayer" requests linking to directory "C:\Program Files\OpenSceneGraph\lib". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "app_osggis_makelayer" requests linking to directory "C:\Program Files\OpenSceneGraph\lib". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "app_osggis_simple" requests linking to directory "C:\Program Files\OpenSceneGraph\lib". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "app_osggis_simple" requests linking to directory "C:\Program Files\OpenSceneGraph\lib". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "app_osggis_simple" requests linking to directory "C:\Program Files\OpenSceneGraph\lib". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "app_osggis_viewer" requests linking to directory "C:\Program Files\OpenSceneGraph\lib". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "app_osggis_viewer" requests linking to directory "C:\Program Files\OpenSceneGraph\lib". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "app_osggis_viewer" requests linking to directory "C:\Program Files\OpenSceneGraph\lib". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "app_osggis_mapper" requests linking to directory "C:\Program Files\OpenSceneGraph\lib". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "app_osggis_mapper" requests linking to directory "C:\Program Files\OpenSceneGraph\lib". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "app_osggis_mapper" requests linking to directory "C:\Program Files\OpenSceneGraph\lib". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "osggis_test_encode" requests linking to directory "C:\Program Files\OpenSceneGraph\lib". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "osggis_test_encode" requests linking to directory "C:\Program Files\OpenSceneGraph\lib". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "osggis_test_encode" requests linking to directory "C:\Program Files\OpenSceneGraph\lib". Targets may link only to libraries. CMake is dropping the item.
Generating done
最后总是不能正常编译,求高手相助。 |
|