Fix options macro in case an arg is disabled.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos
2026-06-04 20:19:22 +02:00
parent 5fd26200ea
commit 8a87b0d2de

View File

@@ -5,10 +5,6 @@ macro(configure_bool_option option_name define_name enabled_msg disabled_msg)
endif() endif()
message(STATUS "${enabled_msg}") message(STATUS "${enabled_msg}")
else() else()
if(NOT "${define_name}" STREQUAL "")
add_compile_definitions(${define_name}=0)
endif()
message(STATUS "${disabled_msg}") message(STATUS "${disabled_msg}")
endif() endif()
endmacro() endmacro()