-
Notifications
You must be signed in to change notification settings - Fork 4.1k
[C++] Can't find_package #43998
Copy link
Copy link
Closed
Labels
Milestone
Description
Describe the usage question you have. Please include as many useful details as possible.
Built static bundle and try link to project.
list(PREPEND CMAKE_PREFIX_PATH "${PROJPATH}/libs/arrow/cpp/build/src")
find_package(Arrow REQUIRED)
Got error
CMake Error at libs/arrow/cpp/build/src/arrow/ArrowConfig.cmake:125 (include):
include could not find requested file:
.../arrow/cpp/build/src/arrow/ArrowTargets.cmake
Call Stack (most recent call first):
CMakeLists.txt:68 (find_package)
CMake Error at libs/arrow/cpp/build/src/arrow/ArrowConfig.cmake:192 (get_target_property):
get_target_property() called with non-existent target
"Arrow::arrow_static".
Call Stack (most recent call first):
libs/arrow/cpp/build/src/arrow/ArrowConfig.cmake:226 (arrow_keep_backward_compatibility)
CMakeLists.txt:68 (find_package)
File ArrowTargets.cmake is created in separate "export" directory and not available to include in ArrowConfig
Component(s)
C++
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type
Fields
Give feedbackNo fields configured for issues without a type.