Removes the copy of the package version file to the build config folder

See: https://github.com/CGAL/cgal/pull/1443#discussion-diff-78147435
This commit is contained in:
Thiago M. de C. Marques 2016-09-09 08:32:21 -03:00
parent a24dd7dd1c
commit 9c338ad61a
2 changed files with 1 additions and 5 deletions

View File

@ -892,8 +892,8 @@ endif()
install(FILES
${CMAKE_BINARY_DIR}/CGALConfigVersion.cmake
${CMAKE_BINARY_DIR}/config/CGALConfig.cmake
${CMAKE_BINARY_DIR}/config/CGALConfigVersion.cmake
DESTINATION ${CGAL_INSTALL_CMAKE_DIR} )
if(CGAL_INSTALL_MAN_DIR)

View File

@ -421,10 +421,6 @@ if( NOT CGAL_MACROS_FILE_INCLUDED )
# There is also a version of CGALConfig.cmake that is prepared in case CGAL in installed in CMAKE_INSTALL_PREFIX.
configure_file("${CGAL_MODULES_DIR}/CGALConfig_install.cmake.in" "${CMAKE_BINARY_DIR}/config/CGALConfig.cmake" @ONLY)
configure_file(
"${CMAKE_BINARY_DIR}/CGALConfigVersion.cmake"
"${CMAKE_BINARY_DIR}/config/CGALConfigVersion.cmake"
COPYONLY)
#write prefix exceptions
file( APPEND ${CMAKE_BINARY_DIR}/CGALConfig.cmake "${SPECIAL_PREFIXES}\n")