diff --git a/Installation/CMakeLists.txt b/Installation/CMakeLists.txt index 0e1615cc90a..4267b9ab313 100644 --- a/Installation/CMakeLists.txt +++ b/Installation/CMakeLists.txt @@ -19,9 +19,20 @@ else() cmake_policy(VERSION 2.6) endif() +# +# Compatibility with CMake 3.0 +# if(POLICY CMP0026) + # Allow the LOCATION target property + # http://www.cmake.org/cmake/help/v3.0/policy/CMP0026.html cmake_policy(SET CMP0026 OLD) endif() +if(POLICY CMP0042) + # Do not enable the use of MACOSX_RPATH + # http://www.cmake.org/cmake/help/v3.0/policy/CMP0042.html + cmake_policy(SET CMP0042 OLD) +endif() + #-------------------------------------------------------------------------------------------------- # diff --git a/Installation/changes.html b/Installation/changes.html index d9392070a28..cdfa273ca7c 100644 --- a/Installation/changes.html +++ b/Installation/changes.html @@ -129,6 +129,7 @@ and src/ directories). Properties of Point-Sampled Surfaces packages. From CGAL version 4.5, Taucs, Blas and Lapack are no longer supported. +
  • CGAL is now compatible with the new CMake version 3.0.
  • dD Geometry Kernel

    diff --git a/Installation/src/CMakeLists.txt b/Installation/src/CMakeLists.txt index b384261e951..2cfbf2b00a4 100644 --- a/Installation/src/CMakeLists.txt +++ b/Installation/src/CMakeLists.txt @@ -103,6 +103,8 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CGAL_RUNTIME_DIR}) # set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_${CONF_TYPE} ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}) #endforeach() +# TODO: Seems useless, because it is called again in ../CMakeLists.txt +# Should probably be removed. -- Laurent Rineau, 2014/07/22 create_CGALconfig_files() set(CGAL_DIR ${CMAKE_BINARY_DIR}) @@ -110,7 +112,7 @@ set(CGAL_DIR ${CMAKE_BINARY_DIR}) add_subdirectory(CGAL) # search libs -set(CGAL_CONFIGURED_LIBRARIES "" PARENT_SCOPE) +set(CGAL_CONFIGURED_LIBRARIES "") foreach(package ${CGAL_CONFIGURED_PACKAGES}) file(GLOB CONFIGURED_LIBS_IN_PACKAGE ${package}/src/CGAL_*/CMakeLists.txt)