Hi Jim,
I've just reviewed your change and feel that it perhaps isn't solving
the problem, rather just hacking around it.
Which version of CMake are you using?
The original code block that you are disabling shouldn't produce
errors, as checks are in place to not enable the XRANDR support if
PKG_COFNIG is not supported or that XRANDR is not available. The code
block is:
INCLUDE(FindPkgConfig OPTIONAL)
IF (PKG_CONFIG_FOUND)
PKG_CHECK_MODULES(XRANDR xrandr)
IF (XRANDR_FOUND)
OPTION(OSGVIEWER_USE_XRANDR "Set to ON to enable
Xrandr support for GraphicsWindowX11." ON)
ELSE(XRANDR_FOUND)
SET(OSGVIEWER_USE_XRANDR OFF)
ENDIF (XRANDR_FOUND)
ELSE(PKG_CONFIG_FOUND)
SET(OSGVIEWER_USE_XRANDR OFF)
ENDIF(PKG_CONFIG_FOUND)
And later there is
IF(OSGVIEWER_USE_XRANDR)
ADD_DEFINITIONS(-DOSGVIEWER_USE_XRANDR)
SET(LIB_PUBLIC_HEADERS ${LIB_PUBLIC_HEADERS} ${XRANDR_INCLUDE_DIRS})
LINK_LIBRARIES(Xrandr)
ENDIF(OSGVIEWER_USE_XRANDR)
Is it that FreeBSD does support XRANDR? Is it an issue with the
LIB_PUBLIC_HEADERS?
Robert.
On Sat, Jan 24, 2009 at 5:21 PM, Jim Brooks <[email protected]> wrote:
> This is a two-line change in src/osgViewer/CMakeLists.txt
> (trunk 2009/01/24 OSG 2.7.9) to fix these cmake errors:
>
>
> .....................................
> CMake Error at CMakeModules/ModuleInstall.cmake:36 (INSTALL):
> install FILES given directory "/usr/local/include" to install.
> Call Stack (most recent call first):
> src/osgViewer/CMakeLists.txt:168 (INCLUDE)
>
> CMake Error at src/osgViewer/CMakeLists.txt:173 (INSTALL):
> install FILES given directory "/usr/local/include" to install.
>
> CMake Error at src/osgViewer/CMakeLists.txt:173 (INSTALL):
> install FILES given directory "/usr/local/include" to install.
> ..........................................
>
> _______________________________________________
> osg-submissions mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>
>
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org