Skip to content

Commit 931ab3c

Browse files
committed
Bump minimum required cmake to 2.8
1 parent 3a2cb71 commit 931ab3c

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
PROJECT (createrepo_c C)
2-
CMAKE_MINIMUM_REQUIRED (VERSION 2.6)
2+
CMAKE_MINIMUM_REQUIRED (VERSION 2.8)
33

44
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99")
55
set (CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS} -ggdb -g -Wall -Wextra -Og")

src/python/CMakeLists.txt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,7 @@ set (CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -fno-strict-aliasing")
3131
set (CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -fno-strict-aliasing")
3232

3333
IF (NOT SKBUILD)
34-
IF (${CMAKE_VERSION} VERSION_LESS "2.8.0")
35-
CONFIGURE_FILE(__init__.py "src/python/createrepo_c/__init__.py" COPYONLY)
36-
ELSE()
37-
FILE(COPY __init__.py DESTINATION createrepo_c)
38-
ENDIF()
34+
FILE(COPY __init__.py DESTINATION createrepo_c)
3935
ENDIF()
4036

4137
SET (createrepo_cmodule_SRCS

0 commit comments

Comments
 (0)