From 9c350f2c474aeacfc5ca83faefa8bcc79b8a36fb Mon Sep 17 00:00:00 2001 From: Laurent Rineau Date: Mon, 20 Nov 2017 10:41:44 +0100 Subject: [PATCH] Fix CMake errors in CGAL demos, with CMake<3.4 --- Installation/cmake/modules/CGAL_add_test.cmake | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Installation/cmake/modules/CGAL_add_test.cmake b/Installation/cmake/modules/CGAL_add_test.cmake index d4a0162944a..79bef011112 100644 --- a/Installation/cmake/modules/CGAL_add_test.cmake +++ b/Installation/cmake/modules/CGAL_add_test.cmake @@ -10,6 +10,12 @@ if(NOT POLICY CMP0064) "CGAL CTest support requires CMake 3.4 or later.\n" "You must either disable BUILD_TESTING or upgrade CMake.") endif() + + # Add a fake function to avoid CMake errors + function(cgal_add_compilation_test) + endfunction() + + # Then return, to exit the file return() endif()