Commit fd1d9c88 authored by Pino Toscano's avatar Pino Toscano

[CMake] just enable what needed each time

parent 476bde47
......@@ -47,11 +47,11 @@ else(WIN32)
endif(WIN32)
set(FONT_CONFIGURATION "${_default_fontconfiguration}" CACHE STRING "The font configuration backend (win32|fontconfig).")
string(TOLOWER "${FONT_CONFIGURATION}" font_configuration)
set(WITH_FONTCONFIGURATION_WIN32 OFF)
set(WITH_FONTCONFIGURATION_FONTCONFIG OFF)
if(font_configuration STREQUAL "win32")
set(WITH_FONTCONFIGURATION_WIN32 ON)
set(WITH_FONTCONFIGURATION_FONTCONFIG OFF)
elseif(font_configuration STREQUAL "fontconfig")
set(WITH_FONTCONFIGURATION_WIN32 OFF)
set(WITH_FONTCONFIGURATION_FONTCONFIG ON)
else(font_configuration STREQUAL "win32")
message(FATAL_ERROR "Invalid font configuration setting: ${FONT_CONFIGURATION}")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment