Hi Chuck, John,

There have been a lot of OSX-specific updates to cmake between your version and 
the latest.  2.4.7 is so old that it doesn't even recognize the FRAMEWORK 
argument, let alone do the right thing with it (ignore in your case).  
Upgrading cmake will solve your problems.

When the framework support landed in our cmake files we should probably have modified the CMAKE_MINIMUM_REQUIRED version in the top-level CMakeLists.txt so that CMake would just tell you that your version of CMake is too old instead of failing later like what happened for John...

It currently says:

IF(WIN32)
    CMAKE_MINIMUM_REQUIRED(VERSION 2.4.6 FATAL_ERROR)
ELSE(WIN32)
    IF(APPLE)
        CMAKE_MINIMUM_REQUIRED(VERSION 2.6.0 FATAL_ERROR)
    ELSE(APPLE)
        CMAKE_MINIMUM_REQUIRED(VERSION 2.4.4 FATAL_ERROR)
    ENDIF(APPLE)
ENDIF(WIN32)

But that means that on Win32 and anything other than APPLE, it will accept old versions of CMake, and the FRAMEWORK keyword is not guarded to be used only on APPLE everywhere it's used, so there's the problem.

I'd say we should use only one CMAKE_MINIMUM_REQUIRED version for all platforms. Else it becomes a nightmare to maintain, you have to guard stuff everywhere.

Comments?

J-S
--
______________________________________________________
Jean-Sebastien Guay    jean-sebastien.g...@cm-labs.com
                               http://www.cm-labs.com/
                        http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to