Skip to content

Commit

Permalink
fix target property
Browse files Browse the repository at this point in the history
  • Loading branch information
olsen232 committed Oct 16, 2023
1 parent cc2ed7a commit 152a7ab
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions vcpkg-vendor/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -467,16 +467,8 @@ list(APPEND LIB_LIST ${SPATIALITE_EXTENSION})
find_package(PDAL CONFIG REQUIRED)
pkg_check_modules(PDAL REQUIRED pdal)

get_target_property(PDALUTIL_LIBRARY pdal_util LOCATION)
if(WIN32 OR APPLE)
get_target_property(PDALCPP_LIBRARY pdalcpp LOCATION)
list(APPEND LIB_LIST ${PDALCPP_LIBRARY} ${PDALUTIL_LIBRARY})
else()
get_target_property(PDALBASE_LIBRARY pdal_base LOCATION)
# set(PDALCPP_LIBRARY ${PDAL_LINK_LIBRARIES}) # why is this different on macOS vs Linux? And why
# isn't it a target?
list(APPEND LIB_LIST ${PDALBASE_LIBRARY} ${PDALUTIL_LIBRARY})
endif()
get_target_property(PDALCPP_LIBRARY pdalcpp LOCATION)
list(APPEND LIB_LIST ${PDALCPP_LIBRARY})

set(PDAL_EXECUTABLE "${CURRENT_PACKAGES_DIR}/tools/pdal/pdal${CMAKE_EXECUTABLE_SUFFIX}")
list(APPEND EXE_LIST "${PDAL_EXECUTABLE}")
Expand Down

0 comments on commit 152a7ab

Please sign in to comment.