我有一个在构建过程中被克隆(使用 git)的 ExternalProject 依赖项。这一切都适用于 CMake + Make。
mkdir build && cd build;
cmake ..
make
当我键入 make 时,它使用 git 正确克隆和构建库。
但是,当我使用 Ninja Generator 时:
mkdir build && cd build;
cmake -GNinja ..
ninja
我收到以下错误:
$ cmake -GNinja .. -- The C compiler identification is AppleClang 6.0.0.6000054
-- The CXX compiler identification is AppleClang 6.0.0.6000054
-- Check for working C compiler using: Ninja
-- Check for working C compiler using: Ninja -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler using: Ninja
-- Check for working CXX compiler using: Ninja -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Boost version: 1.56.0
-- Found the following Boost libraries:
-- unit_test_framework
-- Found Git: /usr/local/bin/git (found version "2.1.2")
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/carneiro/src/gamgee/build
$ ninja
ninja: error: 'contrib/htslib-prefix/src/htslib/libhts.a', needed by 'test/gamgee_test', missing and no known rule to make it
cmake+ninja组合不支持git下载外部项目吗?