Hello Mattias, Paul, etc.
I have seen this also on linux using CMake-2.6. A fix could be something like
IF(CMAKE_VERSION >= 2.6.0)
CMAKE_POLICY(VERSION 2.4.8)
ENDIF(CMAKE_VERSION >= 2.6.0)
This will revert all new policies in 2.6.x to their 2.4.x behavior. Is
this what we want? It seems a bit too drastic.
If we want more fine-grained control, we have the following two options:
# around line 17:
cmake_policy(SET CMP0005 OLD)
or
# around line 347
IF(CMAKE_VERSION >= 2.6.0)
ADD_DEFINITIONS("-DOSG_DEBUG_POSTFIX='"${CMAKE_DEBUG_POSTFIX}"'")
ELSE(CMAKE_VERSION >= 2.6.0)
ADD_DEFINITIONS("-DOSG_DEBUG_POSTFIX='\"${CMAKE_DEBUG_POSTFIX}\"'")
ENDIF(CMAKE_VERSION >= 2.6.0)
The first option is less code, but is less future-proof (we're just
disabling the 2.6.x behavior, like you did above, but only for this
policy). The second is more verbose, but if we ever decide that OSG
can't support CMake 2.4.x in the future (for other reasons) we can just
remove the IF and keep the 2.6.x part.
What do others think is the best course of action? I have tested both of
the above proposals on CMake 2.6.0 and 2.4.7 and they work fine.
J-S
--
______________________________________________________
Jean-Sebastien Guay [EMAIL PROTECTED]
http://www.cm-labs.com/
http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org