zhjwpku opened a new issue, #28:
URL: https://github.com/apache/iceberg-cpp/issues/28

   I am testing using iceberg-cpp as a subproject using FetchContent(not 
install it first), here is the CMakeLists.txt
   
   ```
   cmake_minimum_required(VERSION 3.25)
   
   project(dummy
           VERSION 0.1.0
           LANGUAGES CXX)
   
   include(FetchContent)
   
   fetchcontent_declare(Iceberg
                        GIT_REPOSITORY https://github.com/apache/iceberg-cpp.git
                        GIT_TAG e10d62939efec27d1190f9085edee99976aee8a6)
   fetchcontent_makeavailable(Iceberg)
   ```
   
   It give the following error:
   
   ```
   ➜  build cmake ..
   -- Building using CMake version: 3.31.0
   -- Arrow version: 18.1.0 (full: '18.1.0')
   -- Arrow SO version: 1801 (full: 1801.0.0)
   -- clang-tidy 14 not found
   -- clang-format 14 not found
   -- Could NOT find ClangTools (missing: CLANG_FORMAT_BIN CLANG_TIDY_BIN)
   -- infer not found
   fatal: not a git repository (or any of the parent directories): .git
   -- Found cpplint executable at CPPLINT_BIN-NOTFOUND
   -- System processor: arm64
   -- Arrow build warning level: CHECKIN
   -- Build Type: DEBUG
   CMake Error at 
build/_deps/iceberg-src/cmake_modules/ThirdpartyToolchain.cmake:111 
(set_target_properties):
     set_target_properties Can not find target to add properties to:
     arrow_static
   Call Stack (most recent call first):
     build/_deps/iceberg-src/cmake_modules/ThirdpartyToolchain.cmake:131 
(resolve_arrow_dependency)
     build/_deps/arrow-src/cpp/CMakeLists.txt:546 (include)
   
   
   CMake Error at 
build/_deps/iceberg-src/cmake_modules/ThirdpartyToolchain.cmake:112 (install):
     install TARGETS given target "arrow_static" which does not exist.
   Call Stack (most recent call first):
     build/_deps/iceberg-src/cmake_modules/ThirdpartyToolchain.cmake:131 
(resolve_arrow_dependency)
     build/_deps/arrow-src/cpp/CMakeLists.txt:546 (include)
   
   
   -- CMAKE_C_FLAGS:  -Qunused-arguments  -Wall -Wextra -Wdocumentation 
-DARROW_WARN_DOCUMENTATION -Wshorten-64-to-32 -Wno-missing-braces 
-Wno-unused-parameter -Wno-constant-logical-operand -Wno-return-stack-address 
-Wdate-time -Wno-unknown-warning-option -Wno-pass-failed
   -- CMAKE_CXX_FLAGS:  -fno-aligned-new  -Qunused-arguments 
-fcolor-diagnostics  -Wall -Wextra -Wdocumentation -DARROW_WARN_DOCUMENTATION 
-Wshorten-64-to-32 -Wno-missing-braces -Wno-unused-parameter 
-Wno-constant-logical-operand -Wno-return-stack-address -Wdate-time 
-Wno-unknown-warning-option -Wno-pass-failed
   -- CMAKE_C_FLAGS_DEBUG: -g -Werror -O0
   -- CMAKE_CXX_FLAGS_DEBUG: -g -Werror -O0
   CMake Error at build/_deps/arrow-src/cpp/src/arrow/CMakeLists.txt:1018 
(add_arrow_lib):
     Unknown CMake command "add_arrow_lib".
   
   
   -- Configuring incomplete, errors occurred!
   ```
   
   I tried a little bit, it seems the `resolve_arrow_dependency` from 
ThirdpartyToolchain.cmake was called twice, I don't know how to resolve this 
problem, @wgtmac can you take a look at this when you are free? thanks in 
advance.


-- 
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: issues-unsubscr...@iceberg.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org
For additional commands, e-mail: issues-h...@iceberg.apache.org

Reply via email to