From d9ad075d4df5754bbf6618367b9849cf495ec6c1 Mon Sep 17 00:00:00 2001 From: Pierre Alliez Date: Thu, 10 Jul 2008 12:10:35 +0000 Subject: [PATCH] Better handling of relative paths. That fixes errors with CMake under Windows. --- Polyhedron/demo/Polyhedron/CMakeLists.txt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Polyhedron/demo/Polyhedron/CMakeLists.txt b/Polyhedron/demo/Polyhedron/CMakeLists.txt index b2d758e10c1..a2a0509d6c7 100644 --- a/Polyhedron/demo/Polyhedron/CMakeLists.txt +++ b/Polyhedron/demo/Polyhedron/CMakeLists.txt @@ -2,16 +2,19 @@ project( Polyhedron ) +cmake_minimum_required(VERSION 2.4) +if(COMMAND cmake_policy) + cmake_policy(SET CMP0003 NEW) +endif(COMMAND cmake_policy) + set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true) -foreach(INCDIR ../../../GraphicsView/include ../../../Surface_mesher/include) +foreach(INCDIR ../../../GraphicsView/include include) if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${INCDIR}) include_directories (BEFORE ${CMAKE_CURRENT_SOURCE_DIR}/${INCDIR}) endif() endforeach() -include_directories(include) - if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/../../../GraphicsView/src/CGALQt4) link_directories(${CMAKE_CURRENT_SOURCE_DIR}/../../../GraphicsView/src/CGALQt4) endif(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/../../../GraphicsView/src/CGALQt4)