aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2023-02-28 13:14:08 -0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2023-02-28 13:14:08 -0300
commit4ec4b64bd501986b67f78f89e1d30152a7cb7dd7 (patch)
tree4a241e98577f3ac3a1edbd79fb3e796ed2187c4d
parent111dfd2cee1188925cc070224f0f61f5fb3ed4f7 (diff)
downloadpahole-4ec4b64bd501986b67f78f89e1d30152a7cb7dd7.tar.gz
CMakeLists.txt: Call cmake_minimum_required() before project()
As warned starting with the cmake in fedora:37: cmake version 3.26.0-rc4 ⬢[acme@toolbox build]$ cmake .. CMake Warning (dev) at CMakeLists.txt:1 (project): cmake_minimum_required() should be called prior to this top-level project() call. Please see the cmake-commands(7) manual for usage documentation of both commands. This warning is for project developers. Use -Wno-dev to suppress it. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2036ac07..98642e13 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,5 +1,5 @@
-project(pahole C)
cmake_minimum_required(VERSION 2.8.12)
+project(pahole C)
cmake_policy(SET CMP0005 NEW)
option(LIBBPF_EMBEDDED "Use the embedded version of libbpf instead of searching it via pkg-config" ON)