fix build warnings

This commit is contained in:
Thomas Schlichter
2023-03-09 10:50:26 +01:00
parent d379bbae9c
commit 670cc4de09
4 changed files with 32 additions and 42 deletions
+1 -1
View File
@@ -55,7 +55,7 @@ macro(add_list2_option name val helpstr)
endif()
set(${name} ${value} CACHE STRING "${helpstr}")
set_property(CACHE ${name} PROPERTY STRINGS ${ARGN})
if(NOT "${value}" STREQUAL "False")
if(NOT "${value}" STREQUAL "None")
add_definitions("-D${value}=1")
endif()
endmacro(add_list2_option)