From 01574e7ab9e4c0077b2ef334c3bce3229631f33e Mon Sep 17 00:00:00 2001 From: Laurent Rineau Date: Mon, 28 May 2018 15:22:19 +0200 Subject: [PATCH] Partially revert 7cc46441b5728c0b9bff433005537051d491ac1a Partially revert 7cc46441b5728c0b9bff433005537051d491ac1a from the PR https://github.com/CGAL/cgal/pull/3021 We want to override CGALConfig.cmake. The previous patch was wrong. That is easier to forbid in-source builds in Git, anyway. --- Installation/CMakeLists.txt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Installation/CMakeLists.txt b/Installation/CMakeLists.txt index b060a317381..9c92b6b92af 100644 --- a/Installation/CMakeLists.txt +++ b/Installation/CMakeLists.txt @@ -864,10 +864,8 @@ endif() if(NOT CGAL_HEADER_ONLY) create_CGALconfig_files() else() - if(NOT EXISTS "${CMAKE_BINARY_DIR}/CGALConfig.cmake") - configure_file("${CGAL_MODULES_DIR}/CGALConfig_binary_header_only.cmake.in" - "${CMAKE_BINARY_DIR}/CGALConfig.cmake" @ONLY) - endif() + configure_file("${CGAL_MODULES_DIR}/CGALConfig_binary_header_only.cmake.in" + "${CMAKE_BINARY_DIR}/CGALConfig.cmake" @ONLY) endif() #--------------------------------------------------------------------------------------------------