Fix CMake errors in CGAL demos, with CMake<3.4

This commit is contained in:
Laurent Rineau 2017-11-20 10:41:44 +01:00
parent cf6522dba6
commit 9c350f2c47
1 changed files with 6 additions and 0 deletions

View File

@ -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()