CMakeLists.txt: Honour new command line flag `FREETYPE_NO_DIST'.

This commit is contained in:
Alexander Bock 2015-11-27 06:34:39 +01:00 committed by Werner Lemberg
parent 7696e337ee
commit 8f982b3881
2 changed files with 11 additions and 3 deletions

View File

@ -58,6 +58,9 @@
# #
# . `CMakeLists.txt' is provided as-is since it is normally not used by the # . `CMakeLists.txt' is provided as-is since it is normally not used by the
# developer team. # developer team.
#
# . If you want to disable the automatic generation of the distribution
# targets, add the `-D FREETYPE_NO_DIST=true' command line argument.
cmake_minimum_required(VERSION 2.6) cmake_minimum_required(VERSION 2.6)
@ -391,8 +394,9 @@ set(CPACK_GENERATOR TGZ)
include(CPack) include(CPack)
# add make dist target # Add `make dist' target if FREETYPE_DIST is set (which is the default)
add_custom_target(dist COMMAND ${CMAKE_MAKE_PROGRAM} package_source) if (NOT DEFINED FREETYPE_NO_DIST)
add_custom_target(dist COMMAND ${CMAKE_MAKE_PROGRAM} package_source)
endif ()
# eof # eof

View File

@ -1,3 +1,7 @@
2015-11-27 Alexander Bock <alexander.j.bock@nasa.gov>
CMakeLists.txt: Honour new command line flag `FREETYPE_NO_DIST'.
2015-11-26 Werner Lemberg <wl@gnu.org> 2015-11-26 Werner Lemberg <wl@gnu.org>
[docmaker] Allow `foo[bar]' as identifier. [docmaker] Allow `foo[bar]' as identifier.