mirror of https://github.com/CGAL/cgal
handle cases when LASZIP and LASLIB have different include paths
This commit is contained in:
parent
ce3e8ae0de
commit
e791122b35
|
|
@ -17,6 +17,7 @@ find_path(LASZIP_INCLUDE_DIR
|
|||
NAMES mydefs.hpp
|
||||
PATHS /usr/local/include/LASzip/
|
||||
${LASLIB_INCLUDE_DIR}/../../LASzip/src
|
||||
${LASLIB_INCLUDE_DIR}
|
||||
)
|
||||
|
||||
find_library(LASLIB_LIBRARIES
|
||||
|
|
@ -28,8 +29,10 @@ find_library(LASLIB_LIBRARIES
|
|||
ENV LASLIB_LIB_DIR
|
||||
)
|
||||
|
||||
if(LASLIB_LIBRARIES AND LASLIB_INCLUDE_DIR)
|
||||
if(LASLIB_LIBRARIES AND LASLIB_INCLUDE_DIR AND LASZIP_INCLUDE_DIR)
|
||||
if (NOT ${LASLIB_INCLUDE_DIR} STREQUAL ${LASZIP_INCLUDE_DIR})
|
||||
list(APPEND LASLIB_INCLUDE_DIR ${LASZIP_INCLUDE_DIR})
|
||||
endif()
|
||||
set(LASLIB_FOUND TRUE)
|
||||
set(LASLIB_USE_FILE "UseLASLIB")
|
||||
endif()
|
||||
|
||||
|
|
|
|||
|
|
@ -3,4 +3,4 @@
|
|||
|
||||
add_definitions(-DCGAL_LINKED_WITH_LASLIB)
|
||||
|
||||
message(DEPRECATION "This file UseLASLIB.cmake is deprecated, and the imported target `CGAL::TBB_support` from CGAL_LASLIB_support.cmake should be used instead.")
|
||||
message(DEPRECATION "This file UseLASLIB.cmake is deprecated, and the imported target `CGAL::LASLIB_support` from CGAL_LASLIB_support.cmake should be used instead.")
|
||||
|
|
|
|||
Loading…
Reference in New Issue