Skip to content

Commit

Permalink
Clarify verbose compile-time settings
Browse files Browse the repository at this point in the history
  • Loading branch information
vadi2 committed Aug 13, 2019
1 parent b66f668 commit 1f4e1f2
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions CMakeLists.txt
Expand Up @@ -84,15 +84,7 @@ endif()

set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake ${CMAKE_MODULE_PATH})

# Enable the built-in updater by default on the three main supported OS
# unless environmental variable WITH_UPDATER is defined and set to "NO" (case
# insensitive). Linux packagers will find it useful to do this since they are
# likely to be responsible for updates there. Automatically exclude the
# update stuff from other OSs such as FreeBSD and Cygwin because if they ever
# get finished they have their own packaging system - and we do not support
# updating them.
# WITH_UPDATER is an environmental value/variable (so could be a number, a
# string, something else or not even exist).
# Set the environment variable WITH_UPDATER=NO to disable the built-in updater
set(UPDATER_TEST $ENV{WITH_UPDATER})
if((CMAKE_SYSTEM_NAME STREQUAL "Linux") OR (CMAKE_SYSTEM_NAME STREQUAL "Windows") OR (CMAKE_SYSTEM_NAME STREQUAL "Darwin"))
# We are on one of the supported platforms
Expand All @@ -115,13 +107,7 @@ else()
set(USE_UPDATER NO)
endif()

# Enable the inclusion of fonts currently carried in the source code by default
# unless the environmental variable WITH_FONTS is defined AND is set to a
# (case insensitive) value of "NO". Linux packagers will find it useful to do
# this since package managers may already package the relevant fonts - or are
# not willing or able to include them.
# WITH_FONTS is an environmental value/variable (so could be a number, a string,
# something else or not even exist).
# Set the environment variable WITH_FONTS=NO to disable including built-in fonts
set(FONT_TEST $ENV{WITH_FONTS})
if(DEFINED FONT_TEST)
string(TOUPPER ${FONT_TEST} FONT_TEST)
Expand Down

0 comments on commit 1f4e1f2

Please sign in to comment.