mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 02:39:28 +00:00
Improve file type for SLINT_COMPILER cmake cache variable
Use a FILEPATH to reflect that this is a path to a file and then the cmake configurator will show a file dialog.
This commit is contained in:
parent
af60d060ca
commit
0773e51d92
2 changed files with 2 additions and 2 deletions
|
@ -14,7 +14,7 @@ endif()
|
|||
add_library(@slint_cpp_impl@ @cmake_lib_type@ IMPORTED)
|
||||
set_target_properties(@slint_cpp_impl@ PROPERTIES @SLINT_LIB_PROPERTIES@)
|
||||
|
||||
set(SLINT_COMPILER @SLINT_COMPILER@ CACHE STRING "Path to the slint-compiler executable")
|
||||
set(SLINT_COMPILER @SLINT_COMPILER@ CACHE FILEPATH "Path to the slint-compiler executable")
|
||||
if (SLINT_COMPILER)
|
||||
set(SLINT_STYLE @_SLINT_STYLE@ CACHE STRING "The Slint widget style")
|
||||
add_executable(Slint::slint-compiler IMPORTED GLOBAL)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue