diff --git a/3rdparty/find_dependencies.cmake b/3rdparty/find_dependencies.cmake index dd42dd535eb..169bfbe1a54 100644 --- a/3rdparty/find_dependencies.cmake +++ b/3rdparty/find_dependencies.cmake @@ -1456,9 +1456,15 @@ endif() # msgpack if(USE_SYSTEM_MSGPACK) open3d_find_package_3rdparty_library(3rdparty_msgpack - PACKAGE msgpack - TARGETS msgpackc + PACKAGE msgpack-cxx + TARGETS msgpack-cxx ) + if(NOT 3rdparty_msgpack_FOUND) + open3d_find_package_3rdparty_library(3rdparty_msgpack + PACKAGE msgpack + TARGETS msgpackc + ) + endif() if(NOT 3rdparty_msgpack_FOUND) open3d_pkg_config_3rdparty_library(3rdparty_msgpack SEARCH_ARGS msgpack