Set LAF_OS_BACKEND only if it's not specified

This commit is contained in:
David Capello 2018-08-24 17:34:04 -03:00
parent 1b5fd7ccef
commit 4faa875cef

View File

@ -87,10 +87,12 @@ else()
set(REQUIRE_CURL OFF)
endif()
if(NOT ENABLE_UI)
set(LAF_OS_BACKEND "none") # Without UI, we use the none backend
else()
set(LAF_OS_BACKEND "skia")
if(NOT LAF_OS_BACKEND)
if(NOT ENABLE_UI)
set(LAF_OS_BACKEND "none") # Without UI, we use the none backend
else()
set(LAF_OS_BACKEND "skia")
endif()
endif()
# Check valid gtk + libpng combination