Partially revert 7cc46441b5

Partially revert 7cc46441b5 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.
This commit is contained in:
Laurent Rineau 2018-05-28 15:22:19 +02:00
parent b0f312b192
commit 01574e7ab9
1 changed files with 2 additions and 4 deletions

View File

@ -864,10 +864,8 @@ endif()
if(NOT CGAL_HEADER_ONLY) if(NOT CGAL_HEADER_ONLY)
create_CGALconfig_files() create_CGALconfig_files()
else() else()
if(NOT EXISTS "${CMAKE_BINARY_DIR}/CGALConfig.cmake")
configure_file("${CGAL_MODULES_DIR}/CGALConfig_binary_header_only.cmake.in" configure_file("${CGAL_MODULES_DIR}/CGALConfig_binary_header_only.cmake.in"
"${CMAKE_BINARY_DIR}/CGALConfig.cmake" @ONLY) "${CMAKE_BINARY_DIR}/CGALConfig.cmake" @ONLY)
endif()
endif() endif()
#-------------------------------------------------------------------------------------------------- #--------------------------------------------------------------------------------------------------