From 55529136c2df986e0fab370b310b7a94de830724 Mon Sep 17 00:00:00 2001 From: tastytea Date: Thu, 4 Apr 2019 12:58:49 +0200 Subject: [PATCH] Changed default for WITH_EXAMPLES to NO. --- .drone.yml | 7 ++++--- CMakeLists.txt | 2 +- README.md | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.drone.yml b/.drone.yml index d54d6e5..7d35c99 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,3 +1,4 @@ +# -*- mode: conf-toml -*- pipeline: gcc6: image: debian:stretch-slim @@ -16,7 +17,7 @@ pipeline: - apt-get install -qy -t sid libcurlpp-dev - apt-get install -qy rpm file - rm -rf build && mkdir -p build && cd build - - cmake -DWITH_EXAMPLES=ON -DWITH_TESTS=ON .. + - cmake -DWITH_EXAMPLES=YES -DWITH_TESTS=YES .. - make VERBOSE=1 - make install DESTDIR=install - ctest .. @@ -53,7 +54,7 @@ pipeline: - apt-get install -qy -t sid libcurlpp-dev - apt-get install -qy rpm file - rm -rf build && mkdir -p build && cd build - - cmake -DWITH_EXAMPLES=ON -DWITH_TESTS=ON .. + - cmake -DWITH_EXAMPLES=YES -DWITH_TESTS=YES .. - make VERBOSE=1 - make install DESTDIR=install volumes: @@ -84,7 +85,7 @@ pipeline: - apt-get install -qy -t sid libcurlpp-dev - apt-get install -qy rpm file - rm -rf build && mkdir -p build && cd build - - cmake -DWITH_EXAMPLES=ON -DWITH_TESTS=ON .. + - cmake -DWITH_EXAMPLES=YES -DWITH_TESTS=YES .. - make VERBOSE=1 - make install DESTDIR=install volumes: diff --git a/CMakeLists.txt b/CMakeLists.txt index ac6b052..e2f0999 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,7 +5,7 @@ project (mastodon-cpp ) set(WITH_EASY "YES" CACHE STRING "WITH_EASY defaults to \"YES\"") -set(WITH_EXAMPLES "YES" CACHE STRING "WITH_EXAMPLES defaults to \"YES\"") +set(WITH_EXAMPLES "NO" CACHE STRING "WITH_EXAMPLES defaults to \"NO\"") set(WITH_TESTS "NO" CACHE STRING "WITH_TESTS defaults to \"NO\"") set(WITH_DOC "YES" CACHE STRING "WITH_DOC defaults to \"YES\"") set(WITH_DEB "NO" CACHE STRING "WITH_DEB defaults to \"NO\"") diff --git a/README.md b/README.md index af727ee..08ebae4 100644 --- a/README.md +++ b/README.md @@ -163,7 +163,7 @@ cmake options: * `-DWITH_EASY=NO` to not build the Easy abstractions and to get rid of the jsoncpp-dependency (not recommended) * `-DWITH_EXAMPLES=YES` if you want to compile the examples * `-DWITH_TESTS=YES` if you want to compile the tests - * `-DWITH_DOC=YES` if you want to compile the HTML reference + * `-DWITH_DOC=NO` if you don't want to compile the HTML reference * One of: * `-DWITH_DEB=YES` if you want to be able to generate a deb-package * `-DWITH_RPM=YES` if you want to be able to generate an rpm-package