From: Michael Schroeder Date: Wed, 19 Mar 2025 14:26:20 +0000 (+0100) Subject: Remove CMAKE_MAJOR_VERSION comparison X-Git-Tag: 0.7.32~13 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=f0e9108a8a22a751ae69dab87085ad69433b7351;p=thirdparty%2Flibsolv.git Remove CMAKE_MAJOR_VERSION comparison --- diff --git a/CMakeLists.txt b/CMakeLists.txt index f0c6d4f9..bd189eac 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -276,7 +276,6 @@ CHECK_FUNCTION_EXISTS (fopencookie HAVE_FOPENCOOKIE) CHECK_FUNCTION_EXISTS (funopen HAVE_FUNOPEN) TEST_BIG_ENDIAN (WORDS_BIGENDIAN) -IF (${CMAKE_MAJOR_VERSION} GREATER 2) INCLUDE (CMakePushCheckState) INCLUDE (CheckCCompilerFlag) MACRO (check_linker_flag FLAG VAR) @@ -287,10 +286,6 @@ MACRO (check_linker_flag FLAG VAR) ENDMACRO (check_linker_flag) check_linker_flag("-Wl,--as-needed" HAVE_LINKER_AS_NEEDED) check_linker_flag("-Wl,--version-script=${CMAKE_SOURCE_DIR}/src/libsolv.ver" HAVE_LINKER_VERSION_SCRIPT) -ELSE (${CMAKE_MAJOR_VERSION} GREATER 2) -SET (HAVE_LINKER_AS_NEEDED 1) -SET (HAVE_LINKER_VERSION_SCRIPT 1) -ENDIF (${CMAKE_MAJOR_VERSION} GREATER 2) # should create config.h with #cmakedefine instead... FOREACH (VAR HAVE_STRCHRNUL HAVE_FOPENCOOKIE HAVE_FUNOPEN WORDS_BIGENDIAN diff --git a/README b/README index c704be32..e37d954b 100644 --- a/README +++ b/README @@ -39,7 +39,7 @@ Supported repository formats: Build instructions ================== -Requires: cmake 2.8.5 or later +Requires: cmake 3.5 or later mkdir build cd build