You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
find_package(Boost COMPONENTS thread filesystem system program_options date_time REQUIRED)
if (Boost_MINOR_VERSION GREATER 47)
find_package(Boost COMPONENTS thread filesystem system program_options date_time chrono REQUIRED)
endif ()
My proposed patch is add
find_dependency(yaml-cpp REQUIRED)
after line 8 of libpointmatcherConfig.cmake.in.
Without that patch, a CMake user of libpointmatcherConfig.cmake gets a CMake error:
CMake Error at Installation/cmake/modules/CGAL_pointmatcher_support.cmake:12 (target_link_libraries):
The link interface of target "CGAL::pointmatcher_support" contains:
yaml-cpp::yaml-cpp
but the target was not found. Possible reasons include:
* There is a typo in the target name.
* A find_package call is missing for an IMPORTED target.
* An ALIAS target is missing.
For information, the target CGAL::pointmatcher_support is created by the file CGAL_pointmatcher_support.cmake of CGAL, that contains:
if(libpointmatcher_FOUND ANDNOTTARGET CGAL::pointmatcher_support)
find_package(Boost COMPONENTS thread filesystem system program_options date_time chrono)
if(Boost_chrono_FOUND
AND Boost_thread_FOUND
AND Boost_filesystem_FOUND
AND Boost_system_FOUND
AND Boost_program_options_FOUND
AND Boost_date_time_FOUND)
add_library(CGAL::pointmatcher_support INTERFACEIMPORTED)
target_compile_definitions(CGAL::pointmatcher_support INTERFACE"CGAL_LINKED_WITH_POINTMATCHER")
target_include_directories(CGAL::pointmatcher_support INTERFACE"${libpointmatcher_INCLUDE_DIR}")
target_link_libraries(CGAL::pointmatcher_support INTERFACE${libpointmatcher_LIBRARIES} libnabo::nabo)
else()
message(STATUS "NOTICE: the libpointmatcher library requires the following boost components: thread filesystem system program_options date_time chrono.")
endif()
endif()
cc: @soesau We have a CMake error with the new released Ubuntu 24.084, that ships yaml-cpp version 0.8.0.
The text was updated successfully, but these errors were encountered:
yaml-cpp
is a required dependency:libpointmatcher/CMakeLists.txt
Lines 220 to 221 in cb16b20
It should be added as a dependency in
libpointmatcherConfig.cmake.in
, likelibnano
:libpointmatcher/libpointmatcherConfig.cmake.in
Lines 7 to 12 in cb16b20
My proposed patch is add
find_dependency(yaml-cpp REQUIRED)
after line 8 of
libpointmatcherConfig.cmake.in
.Without that patch, a CMake user of
libpointmatcherConfig.cmake
gets a CMake error:see a faulty CI testsuite log at https://github.com/CGAL/cgal-testsuite-dockerfiles/actions/runs/8891254550/job/24412843289#step:3:10198.
For information, the target
CGAL::pointmatcher_support
is created by the fileCGAL_pointmatcher_support.cmake
of CGAL, that contains:cc: @soesau We have a CMake error with the new released Ubuntu 24.084, that ships
yaml-cpp
version 0.8.0.The text was updated successfully, but these errors were encountered: