Robert,
I just found out that CMAKE_PATCH_VERSION is not an unique incremental
number - and thus my previous cmake version test was incorrect. I then
found the BUILDER_VERSION_GREATER macro in OsgMacroUtils.cmake which
hopefully works correctly. Here is the corrected code for the root
CMakeListst.txt:
old:
FIND_PACKAGE(Qt5Widgets)
new:
# QUIET option disables messages if the package cannot be found.
FIND_PACKAGE(Qt5Widgets QUIET)
IF ( Qt5Widgets_FOUND )
# CMake 2.8.8 or greater required
BUILDER_VERSION_GREATER(2 8 7)
IF(NOT VALID_BUILDER_VERSION)
MESSAGE(
SEND_ERROR
"Qt5 requires CMake version 2.8.8 or greater!\n"
"Update CMake or set DESIRED_QT_VERSION to less than 5
or disable OSG_USE_QT."
)
ENDIF( )
ENDIF( )
Unfortunatel, it looks like all other cmake version tests in root
CMakeLists.txt are also incorrect and should be fixed someday ...
Regards,
Robert Milharcic
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org