From 3a2b06fb8da3cee0859dbe2d05d98e7101c00c72 Mon Sep 17 00:00:00 2001 From: Laurent Rineau Date: Thu, 2 Oct 2008 11:09:34 +0000 Subject: [PATCH] Fix conditional compilation. --- Apollonius_graph_2/demo/Apollonius_graph_2/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Apollonius_graph_2/demo/Apollonius_graph_2/CMakeLists.txt b/Apollonius_graph_2/demo/Apollonius_graph_2/CMakeLists.txt index 60ddb273683..8b7a35b939a 100644 --- a/Apollonius_graph_2/demo/Apollonius_graph_2/CMakeLists.txt +++ b/Apollonius_graph_2/demo/Apollonius_graph_2/CMakeLists.txt @@ -6,7 +6,7 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.4.5) set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true) -find_package(CGAL REQUIRED Qt3 ) +find_package(CGAL QUIET COMPONENTS Qt3 ) include( ${CGAL_USE_FILE} ) find_package(Qt3-patched QUIET) @@ -14,7 +14,7 @@ find_package(Qt3-patched QUIET) # that it can be used together with FindQt4: all its variables are prefixed # by "QT3_" instead of "QT_". -if ( CGAL_FOUND AND QT3_FOUND ) +if ( CGAL_FOUND AND QT3_FOUND AND CGAL_Qt3_FOUND ) include_directories (BEFORE ./include)