Add EXCLUDE_FROM_ALL

This commit is contained in:
2021-07-30 20:21:11 +02:00
parent b00d888471
commit 8b4e58526a
11 changed files with 34 additions and 23 deletions

View File

@@ -1,10 +1,11 @@
include(FetchContent)
FetchContent_Declare(
yaml-cpp
GIT_REPOSITORY https://github.com/jbeder/yaml-cpp.git
GIT_TAG yaml-cpp-0.6.3
GIT_SHALLOW TRUE
yaml-cpp
EXCLUDE_FROM_ALL
GIT_REPOSITORY https://github.com/jbeder/yaml-cpp.git
GIT_TAG yaml-cpp-0.6.3
GIT_SHALLOW TRUE
)
set(YAML_CPP_BUILD_TOOLS OFF)
set(YAML_CPP_BUILD_TESTS OFF)