cmark

My personal build of CMark ✏️

Commit
cdcd29f27a25334817026afaf4501bb146d66f10
Parent
e00b7a672258d320789ee2efd9ed34307e68bf95
Author
John MacFarlane <jgm@berkeley.edu>
Date

Require cmake >= 2.8.9, use a ppa for travis.

`package_find(PythonInterp)` doesn't find python 3.2 with the cmake travis provides.

Diffstat

2 files changed, 4 insertions, 2 deletions

Status File Name N° Changes Insertions Deletions
Modified .travis.yml 4 3 1
Modified CMakeLists.txt 2 1 1
diff --git a/.travis.yml b/.travis.yml
@@ -3,8 +3,10 @@ compiler:
  - clang
  - gcc
 before_install:
+ # we need a more recent cmake than travis provides (at least 2.8.9):
+ - echo "yes" | sudo add-apt-repository ppa:kalakris/cmake
  - sudo apt-get update -qq
- - sudo apt-get install -qq python3 pandoc re2c valgrind
+ - sudo apt-get install -qq cmake python3 pandoc re2c valgrind
 script:
  - make testtarball
  - PROG=`ls cmark-*.*/build/src/cmark` make leakcheck
diff --git a/CMakeLists.txt b/CMakeLists.txt
@@ -1,5 +1,5 @@
 project(cmark)
-cmake_minimum_required(VERSION 2.8)
+cmake_minimum_required(VERSION 2.8.9)
 
 if("${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_BINARY_DIR}")
     message(FATAL_ERROR "Do not build in-source.\nPlease remove CMakeCache.txt and the CMakeFiles/ directory.\nThen: mkdir build ; cd build ; cmake .. ; make")