C++: don't force the SLINT_STYLE cmake variable

Keep the default if unset, otherwise use whatever SLINT_STYLE was passed
This commit is contained in:
Olivier Goffart 2022-07-20 11:34:56 +02:00 committed by Olivier Goffart
parent ced9504635
commit 29d28dc73e
3 changed files with 12 additions and 5 deletions

View file

@ -30,4 +30,5 @@ set(_IMPORT_PREFIX)
include("${CMAKE_CURRENT_LIST_DIR}/SlintTargets.cmake")
set(SLINT_STYLE @SLINT_STYLE_DEFAULT@ CACHE STRING "The Slint widget style")
set(SLINT_STYLE @_SLINT_STYLE@ CACHE STRING "The Slint widget style")
set_property(GLOBAL PROPERTY SLINT_STYLE ${SLINT_STYLE})