raulcd commented on code in PR #252:
URL: https://github.com/apache/arrow-cookbook/pull/252#discussion_r963472365
##########
cpp/code/CMakeLists.txt:
##########
@@ -23,8 +23,14 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libstdc++")
endif()
-# Add Arrow
-find_package(Arrow REQUIRED COMPONENTS dataset flight parquet)
+# Add Arrow and other required packages
+find_package(Arrow REQUIRED)
+
+if(${ARROW_VERSION} VERSION_GREATER "9.0.0")
Review Comment:
but the following find_packages fail on the 9.0.0 version, when I use:
```
find_package(Arrow REQUIRED)
find_package(ArrowDataset REQUIRED)
find_package(ArrowFlight REQUIRED)
find_package(Parquet REQUIRED)
```
I get the following issue:
```
CMake Error at CMakeLists.txt:28 (find_package):
By not providing "FindArrowDataset.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"ArrowDataset", but CMake did not find one.
Could not find a package configuration file provided by "ArrowDataset" with
any of the following names:
ArrowDatasetConfig.cmake
arrowdataset-config.cmake
Add the installation prefix of "ArrowDataset" to CMAKE_PREFIX_PATH or set
"ArrowDataset_DIR" to a directory containing one of the above files. If
"ArrowDataset" provides a separate development package or SDK, be sure it
has been installed.
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]