nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 69 lines 2.4 kB view raw
1From 60cac435fb801b3efce4f85643ac42cef5b22805 Mon Sep 17 00:00:00 2001 2From: Saleem Abdulrasool <compnerd@compnerd.org> 3Date: Sun, 22 Dec 2019 11:32:37 -0800 4Subject: [PATCH 1/2] build: chmod -x CMakeLists.txt (NFC) 5 6Remove the unnecessary execute permission on CMakeLists.txt. 7--- 8 CMakeLists.txt | 0 9 1 file changed, 0 insertions(+), 0 deletions(-) 10 mode change 100755 => 100644 CMakeLists.txt 11 12diff --git a/CMakeLists.txt b/CMakeLists.txt 13old mode 100755 14new mode 100644 15 16From e922e337bf405b043788dd5febf9957e19d11300 Mon Sep 17 00:00:00 2001 17From: Chris Mayo <aklhfex@gmail.com> 18Date: Wed, 13 Aug 2025 19:27:03 +0100 19Subject: [PATCH 2/2] CMake 4 compatibility 20 21All CMake versions older than 3.10 are deprecated. 22--- 23 CMakeLists.txt | 17 ++--------------- 24 extensions/CMakeLists.txt | 2 +- 25 2 files changed, 3 insertions(+), 16 deletions(-) 26 27diff --git a/CMakeLists.txt b/CMakeLists.txt 28index ff97419f8..83d44f0a3 100644 29--- a/CMakeLists.txt 30+++ b/CMakeLists.txt 31@@ -1,12 +1,6 @@ 32-cmake_minimum_required(VERSION 2.8.9) 33+cmake_minimum_required(VERSION 3.10) 34 35-# prevent ugly developer warnings because version is set directly, not through project() 36-# it should be redone properly by using VERSION in project() if on CMake 3.x 37-if(CMAKE_MAJOR_VERSION GREATER 2) 38- cmake_policy(SET CMP0048 OLD) 39-endif() 40- 41-project(cmark) 42+project(cmark VERSION 0.28.3) 43 44 include("FindAsan.cmake") 45 46@@ -14,13 +8,6 @@ if("${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_BINARY_DIR}") 47 message(FATAL_ERROR "Do not build in-source.\nPlease remove CMakeCache.txt and the CMakeFiles/ directory.\nThen: mkdir build ; cd build ; cmake .. ; make") 48 endif() 49 50-set(PROJECT_NAME "cmark") 51- 52-set(PROJECT_VERSION_MAJOR 0) 53-set(PROJECT_VERSION_MINOR 28) 54-set(PROJECT_VERSION_PATCH 3) 55-set(PROJECT_VERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH} ) 56- 57 option(CMARK_TESTS "Build cmark tests and enable testing" ON) 58 option(CMARK_STATIC "Build static libcmark library" ON) 59 option(CMARK_SHARED "Build shared libcmark library" ON) 60diff --git a/extensions/CMakeLists.txt b/extensions/CMakeLists.txt 61index e62d1550f..b6a1556e9 100644 62--- a/extensions/CMakeLists.txt 63+++ b/extensions/CMakeLists.txt 64@@ -1,4 +1,4 @@ 65-cmake_minimum_required(VERSION 2.8) 66+cmake_minimum_required(VERSION 3.10) 67 set(LIBRARY "cmarkextensions") 68 set(LIBRARY_SOURCES 69 core-extensions.c