set(WITH_@LIBRARY_NAME@ "ON") # The else condition of this code is never used in an installed # version since it cannot happen there. 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) if(NOT MSVC AND NOT CGAL_HEADER_ONLY) get_property(@LIBRARY_NAME@_LIBRARY TARGET CGAL::@LIBRARY_NAME@ PROPERTY LOCATION) else() set(@LIBRARY_NAME@_LIBRARY "") endif() else() # We are currently in a CGAL Build and CGALExports.cmake has not # necessarily been created yet. Just alias the targets. Also don't # access the LOCATION property here to set lib_LIBRARY, since those # targets are not imported and this is disallowed by CMP0026. Just # set it to the target name. if(TARGET @LIBRARY_NAME@ AND NOT TARGET CGAL::@LIBRARY_NAME@ AND NOT CGAL_HEADER_ONLY) add_library(CGAL::@LIBRARY_NAME@ ALIAS @LIBRARY_NAME@) set(@LIBRARY_NAME@_LIBRARY CGAL::@LIBRARY_NAME@) else() set(@LIBRARY_NAME@_LIBRARY "") endif() endif() # 3RD_PARTY variables. set(@LIBRARY_NAME@_3RD_PARTY_INCLUDE_DIRS "@@LIBRARY_NAME@_3RD_PARTY_INCLUDE_DIRS@") set(@LIBRARY_NAME@_3RD_PARTY_DEFINITIONS "@@LIBRARY_NAME@_3RD_PARTY_DEFINITIONS@") set(@LIBRARY_NAME@_3RD_PARTY_LIBRARIES_DIRS "@@LIBRARY_NAME@_3RD_PARTY_LIBRARIES_DIRS@") set(@LIBRARY_NAME@_3RD_PARTY_LIBRARIES "@@LIBRARY_NAME@_3RD_PARTY_LIBRARIES@")