cmake: use tri-state AUTO/ON/OFF for encoders

This commit is contained in:
Patrick Nicolas
2023-12-06 15:29:39 +01:00
parent 23298a1581
commit 8338c9f5d6
2 changed files with 38 additions and 7 deletions
+4
View File
@@ -0,0 +1,4 @@
function(auto_option name description default)
set(${name} ${default} CACHE STRING "${description}")
set_property(CACHE ${name} PROPERTY STRINGS AUTO ON OFF)
endfunction()