diff --git a/CMakeLists.txt b/CMakeLists.txt index 2fd59c5d3..aef55770c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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