diff options
author | Matteo Croce <mcroce@microsoft.com> | 2021-09-20 18:44:52 +0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2021-09-27 17:04:53 -0300 |
commit | 3d20210d84f61ee2189927e2d9de9ce3e5a0a9c5 (patch) | |
tree | 7d169bced88e7fd575aab04cde0bb05b8603a139 | |
parent | 38fad22d669ab044314d015ddb3491d2dc6416fa (diff) | |
download | pahole-3d20210d84f61ee2189927e2d9de9ce3e5a0a9c5.tar.gz |
CMakeList.txt: Don't download libbpf source when system library is used
The build system always download the libbpf submodule, regardless if
we're using the embedded or the system version.
Download the libbpf source only if we're using the embedded one.
Signed-off-by: Matteo Croce <mcroce@microsoft.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 8523bce3..2ab66e43 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -65,7 +65,7 @@ find_package(Python3 QUIET) # make sure git submodule(s) are checked out find_package(Git QUIET) -if(GIT_FOUND AND EXISTS "${PROJECT_SOURCE_DIR}/.git") +if(LIBBPF_EMBEDDED AND GIT_FOUND AND EXISTS "${PROJECT_SOURCE_DIR}/.git") # Update submodules as needed option(GIT_SUBMODULE "Check submodules during build" ON) if(GIT_SUBMODULE) |