cgal/GraphicsView/demo/Triangulation_2
Laurent Rineau 2db4effa7e CMake: Fix the handling of cmake_policy
That is a followup-to my commit last year:
  | ------------------------------------------------------------------------
  | r63198 | lrineau | 2011-04-28 19:45:22 +0200 (Thu, 28 Apr 2011) | 5 lines
  | 
  | Try to fix my last revision about cmake_policy, with CMake-2.6.x
  | 
  | CMake gives an error if one tries to use cmake_policy(VERSION x.y.z) if
  | x.y.z is greater than the current CMake version.
  | 
  | ------------------------------------------------------------------------

The following check:
  if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" VERSION_GREATER 2.6)
is useless just after a call to:
 cmake_minimum_required(VERSION 2.6.2)



The script used to fix that was:


#!/usr/bin/env perl

$replacement=<<'END';
if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION}" VERSION_GREATER 2.8.3)
  cmake_policy(VERSION 2.8.4)
else()
  cmake_policy(VERSION 2.6)
endif()
END

while(<>) {
    if(/if\("\${CMAKE_MAJOR_VERSION}.\${CMAKE_MINOR_VERSION}" VERSION_GREATER 2.6\)/) {
        while(<>) {
            if(/^endif\(\)/) {
                print "$replacement";
                while(<>) {
                    print;
                }
                exit 0
            }
        }
    }
    print;
}
2012-08-22 12:35:03 +00:00
..
data Add a copy of demo/Mesh_2/data/ (that directory will be soon dont_submitted). 2008-09-26 13:35:46 +00:00
icons More removal of svn:executable property on images. 2009-01-03 13:30:10 +00:00
include/CGAL Fix for Windows 'min/max' bug and remove superfluous #include 2012-01-19 08:43:49 +00:00
CMakeLists.txt CMake: Fix the handling of cmake_policy 2012-08-22 12:35:03 +00:00
Constrained_Delaunay_triangulation_2.cpp Fix for Windows 'min/max' bug 2012-01-18 11:25:40 +00:00
Constrained_Delaunay_triangulation_2.qrc Backport from trunk: 2010-08-11 16:03:25 +00:00
Constrained_Delaunay_triangulation_2.ui Add the necessary to allow persistence between calls 2008-10-01 09:17:07 +00:00
Delaunay_triangulation_2.cpp Fix for Windows 'min/max' bug 2012-01-18 11:25:40 +00:00
Delaunay_triangulation_2.qrc Backport from trunk: 2010-08-11 16:03:25 +00:00
Delaunay_triangulation_2.ui Add the necessary to allow persistence between calls 2008-10-01 09:17:07 +00:00
RegularTriangulationRemoveVertex.h Fix MSVCisms: missing typenames. 2008-10-01 13:45:08 +00:00
Regular_triangulation_2.cpp Fix for Windows 'min/max' bug 2012-01-18 11:25:40 +00:00
Regular_triangulation_2.qrc Backport from trunk: 2010-08-11 16:03:25 +00:00
Regular_triangulation_2.ui Fix the tooltip of input weighted point 2008-12-05 13:10:13 +00:00
TriangulationCircumcircle.h robustification 2008-07-02 09:10:59 +00:00
TriangulationConflictZone.h Disambiguate beginning of comment 2011-10-06 19:49:16 +00:00
TriangulationMovingPoint.h remove warnings 2011-02-24 16:36:04 +00:00
TriangulationPointInputAndConflictZone.h Disambiguate beginning of comment 2011-10-06 19:49:16 +00:00
TriangulationRemoveVertex.h Fix VCisms. 2008-09-01 14:01:19 +00:00
about_Constrained_Delaunay_triangulation_2.html
about_Delaunay_triangulation_2.html
about_Regular_triangulation_2.html 2D regular triangulation demo 2008-09-30 16:30:44 +00:00