Thanks Ulrich, fix now merged and submitted to svn/trunk.

On Thu, Oct 20, 2011 at 11:15 AM, Ulrich Hertlein <[email protected]> wrote:
> Hi Robert,
>
> subject says it all, using policy CMP0017 fails on cmake < 2.8.4
>
> --- ../CMakeLists.txt   (revision 12836)
> +++ ../CMakeLists.txt   (working copy)
> @@ -21,7 +21,10 @@
>     cmake_policy(SET CMP0005 NEW)
>
>     # tell CMake to prefer CMake's own CMake modules when available
> -    cmake_policy(SET CMP0017 NEW)
> +    # only available from cmake-2.8.4
> +    if(${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 8 AND
> ${CMAKE_PATCH_VERSION} GREATER 3)
> +        cmake_policy(SET CMP0017 NEW)
> +    endif()
>
> Cheers,
> /ulrich
>
> _______________________________________________
> 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

Reply via email to