mirror of https://github.com/CGAL/cgal
Do include the export file if CMP0024 does not exist
With CMake-2.8.11, CMP0024 does not yet exist, and the target aliasing feature does not exist either. So the only solution is to include the export file.
This commit is contained in:
parent
877634ba9f
commit
e43b1e42ba
|
|
@ -12,7 +12,9 @@ get_filename_component(CGAL_CONFIG_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
|||
|
||||
# The else condition of this code is intentionally not present in
|
||||
# CGALConfig_install.cmake.in since it cannot happen there.
|
||||
if(NOT CGAL_BUILDING_LIBS)
|
||||
# Note also that for CMake<=2.8.11 (detected by the absence of CMP0024),
|
||||
# the else() condition is never used.
|
||||
if(NOT POLICY CMP0024 OR NOT CGAL_BUILDING_LIBS)
|
||||
include("${CGAL_CONFIG_DIR}/CGALExports.cmake")
|
||||
|
||||
macro(CGAL_get_property_optional VAR TARGET PROPERTY)
|
||||
|
|
|
|||
Loading…
Reference in New Issue