From 8b4e58526ae21b47f1329fb3434ace7fcda20452 Mon Sep 17 00:00:00 2001 From: GeorgH93 Date: Fri, 30 Jul 2021 20:21:11 +0200 Subject: [PATCH] Add EXCLUDE_FROM_ALL --- 3rdParty/assimp/CMakeLists.txt | 1 + 3rdParty/eigen/CMakeLists.txt | 9 +++++---- 3rdParty/glfw/CMakeLists.txt | 9 +++++---- 3rdParty/glm/CMakeLists.txt | 9 +++++---- 3rdParty/magic-enum/CMakeLists.txt | 1 + 3rdParty/opencv/CMakeLists.txt | 1 + 3rdParty/pugixml/CMakeLists.txt | 1 + 3rdParty/spdlog/CMakeLists.txt | 1 + 3rdParty/stb/CMakeLists.txt | 7 ++++--- 3rdParty/utfcpp/CMakeLists.txt | 9 +++++---- 3rdParty/yaml-cpp/CMakeLists.txt | 9 +++++---- 11 files changed, 34 insertions(+), 23 deletions(-) diff --git a/3rdParty/assimp/CMakeLists.txt b/3rdParty/assimp/CMakeLists.txt index 9b98825..265ec49 100644 --- a/3rdParty/assimp/CMakeLists.txt +++ b/3rdParty/assimp/CMakeLists.txt @@ -2,6 +2,7 @@ include(FetchContent) FetchContent_Declare( assimp + EXCLUDE_FROM_ALL GIT_REPOSITORY https://github.com/assimp/assimp.git GIT_TAG v5.0.1 GIT_SHALLOW TRUE diff --git a/3rdParty/eigen/CMakeLists.txt b/3rdParty/eigen/CMakeLists.txt index e9b2661..01a8634 100644 --- a/3rdParty/eigen/CMakeLists.txt +++ b/3rdParty/eigen/CMakeLists.txt @@ -1,10 +1,11 @@ include(FetchContent) FetchContent_Declare( - eigen - GIT_REPOSITORY https://gitlab.com/libeigen/eigen.git - GIT_TAG master - GIT_SHALLOW TRUE + eigen + EXCLUDE_FROM_ALL + GIT_REPOSITORY https://gitlab.com/libeigen/eigen.git + GIT_TAG master + GIT_SHALLOW TRUE ) set(EIGEN_BUILD_DOC OFF) set(BUILD_TESTING OFF) diff --git a/3rdParty/glfw/CMakeLists.txt b/3rdParty/glfw/CMakeLists.txt index a38f0d4..5ede4a1 100644 --- a/3rdParty/glfw/CMakeLists.txt +++ b/3rdParty/glfw/CMakeLists.txt @@ -1,10 +1,11 @@ include(FetchContent) FetchContent_Declare( - glfw - GIT_REPOSITORY https://github.com/glfw/glfw.git - GIT_TAG 3.3.2 - GIT_SHALLOW TRUE + glfw + EXCLUDE_FROM_ALL + GIT_REPOSITORY https://github.com/glfw/glfw.git + GIT_TAG 3.3.2 + GIT_SHALLOW TRUE ) set(GLFW_BUILD_EXAMPLES OFF) set(GLFW_BUILD_TESTS OFF) diff --git a/3rdParty/glm/CMakeLists.txt b/3rdParty/glm/CMakeLists.txt index 3d52548..f52ebbb 100644 --- a/3rdParty/glm/CMakeLists.txt +++ b/3rdParty/glm/CMakeLists.txt @@ -1,10 +1,11 @@ include(FetchContent) FetchContent_Declare( - glm - GIT_REPOSITORY https://github.com/g-truc/glm.git - GIT_TAG 0.9.9.8 - GIT_SHALLOW TRUE + glm + EXCLUDE_FROM_ALL + GIT_REPOSITORY https://github.com/g-truc/glm.git + GIT_TAG 0.9.9.8 + GIT_SHALLOW TRUE ) set(GLM_TEST_ENABLE OFF) FetchContent_MakeAvailable(glm) diff --git a/3rdParty/magic-enum/CMakeLists.txt b/3rdParty/magic-enum/CMakeLists.txt index b1effde..a9c4769 100644 --- a/3rdParty/magic-enum/CMakeLists.txt +++ b/3rdParty/magic-enum/CMakeLists.txt @@ -2,6 +2,7 @@ include(FetchContent) FetchContent_Declare( magic_enum + EXCLUDE_FROM_ALL GIT_REPOSITORY https://github.com/Neargye/magic_enum.git GIT_TAG v0.7.0 GIT_SHALLOW TRUE diff --git a/3rdParty/opencv/CMakeLists.txt b/3rdParty/opencv/CMakeLists.txt index 93e8ffb..1713ee7 100644 --- a/3rdParty/opencv/CMakeLists.txt +++ b/3rdParty/opencv/CMakeLists.txt @@ -2,6 +2,7 @@ Find_Package(OpenCV) if (NOT OpenCV_FOUND) FetchContent_Declare( opencv + EXCLUDE_FROM_ALL GIT_REPOSITORY https://github.com/opencv/opencv.git GIT_TAG v4.5.0 GIT_SHALLOW TRUE diff --git a/3rdParty/pugixml/CMakeLists.txt b/3rdParty/pugixml/CMakeLists.txt index 27427c2..245a0ef 100644 --- a/3rdParty/pugixml/CMakeLists.txt +++ b/3rdParty/pugixml/CMakeLists.txt @@ -2,6 +2,7 @@ include(FetchContent) FetchContent_Declare( pugixml + EXCLUDE_FROM_ALL GIT_REPOSITORY https://github.com/zeux/pugixml.git GIT_TAG v1.11.4 GIT_SHALLOW TRUE diff --git a/3rdParty/spdlog/CMakeLists.txt b/3rdParty/spdlog/CMakeLists.txt index a0459b6..8a6819f 100644 --- a/3rdParty/spdlog/CMakeLists.txt +++ b/3rdParty/spdlog/CMakeLists.txt @@ -2,6 +2,7 @@ include(FetchContent) FetchContent_Declare( spdlog + EXCLUDE_FROM_ALL GIT_REPOSITORY https://github.com/gabime/spdlog.git GIT_TAG v1.8.1 GIT_SHALLOW TRUE diff --git a/3rdParty/stb/CMakeLists.txt b/3rdParty/stb/CMakeLists.txt index 38e06dd..3fa2144 100644 --- a/3rdParty/stb/CMakeLists.txt +++ b/3rdParty/stb/CMakeLists.txt @@ -1,9 +1,10 @@ include(FetchContent) FetchContent_Declare( - stb - GIT_REPOSITORY https://github.com/nothings/stb.git - GIT_SHALLOW TRUE + stb + EXCLUDE_FROM_ALL + GIT_REPOSITORY https://github.com/nothings/stb.git + GIT_SHALLOW TRUE ) FetchContent_MakeAvailable(stb) diff --git a/3rdParty/utfcpp/CMakeLists.txt b/3rdParty/utfcpp/CMakeLists.txt index d333dc3..b85a016 100644 --- a/3rdParty/utfcpp/CMakeLists.txt +++ b/3rdParty/utfcpp/CMakeLists.txt @@ -1,10 +1,11 @@ include(FetchContent) FetchContent_Declare( - utfcpp - GIT_REPOSITORY https://github.com/nemtrif/utfcpp.git - GIT_TAG v3.1.2 - GIT_SHALLOW TRUE + utfcpp + EXCLUDE_FROM_ALL + GIT_REPOSITORY https://github.com/nemtrif/utfcpp.git + GIT_TAG v3.1.2 + GIT_SHALLOW TRUE ) set(UTF8_TESTS OFF) set(UTF8_INSTALL OFF) diff --git a/3rdParty/yaml-cpp/CMakeLists.txt b/3rdParty/yaml-cpp/CMakeLists.txt index 112733c..ea4cb02 100644 --- a/3rdParty/yaml-cpp/CMakeLists.txt +++ b/3rdParty/yaml-cpp/CMakeLists.txt @@ -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)