Skip to content

Commit

Permalink
Add a configure flag to disable the download of the font
Browse files Browse the repository at this point in the history
  • Loading branch information
jwrober committed Nov 27, 2022
1 parent dc64481 commit 488edbf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions cmake/FreecivBuildOptions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,6 @@ endif()

# By default we do not enable VCPKG
option(FREECIV_USE_VCPKG "Use VCPKG" OFF)

option(FREECIV_DOWNLOAD_FONTS "Download fonts needed by Freeciv21" ON)
mark_as_advanced(FREECIV_DOWNLOAD_FONTS)
4 changes: 2 additions & 2 deletions cmake/FreecivInstall.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ if(UNIX AND NOT APPLE)
endif(UNIX AND NOT APPLE)

# We grab the Libertinus Font package online for the client
if(FREECIV_ENABLE_CLIENT)
if(FREECIV_ENABLE_CLIENT AND FREECIV_DOWNLOAD_FONTS)
message(STATUS "Downloading Libertinus Font Package")

include(ExternalProject)
Expand Down Expand Up @@ -266,5 +266,5 @@ if(FREECIV_ENABLE_CLIENT)
FILES_MATCHING PATTERN *.otf PATTERN *.txt
)
endif(MSYS OR MINGW OR WIN32)
endif(FREECIV_ENABLE_CLIENT)
endif()

0 comments on commit 488edbf

Please sign in to comment.