Hi,
Jean-Sébastien Guay wrote:
Hello Mattias, Paul, etc.
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.
I'm happy with the "IF", it kind of serves as documentation for the
difference between versions.
jp
J-S
--
This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard.
The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html.
This message has been scanned for viruses and dangerous content by MailScanner,
and is believed to be clean. MailScanner thanks Transtec Computers for their support.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org