From bed2f147a4594f437322d9a6dbc393d4f1743826 Mon Sep 17 00:00:00 2001 From: Morten Olsen Lysgaard Date: Wed, 8 Nov 2023 20:41:26 +0100 Subject: [PATCH] CMakeLists.txt: Correct bug where the setting of options are not printed correctly --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index edd4ffeb..20e48db9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,7 +13,7 @@ endif() macro(VERBOSE_OPTION ARG DESC) option(${ARG} ${DESC} ${ARGN}) - message("-- Option: ${ARG}: ${ARGN}") + message("-- Option: ${ARG}: ${${ARG}}") endmacro() VERBOSE_OPTION(DO_CORE_BUILD "Only build essentials by default" ${CORE_BUILD_DEFAULT}) @@ -26,6 +26,7 @@ IF(WIN32) SET(IS_WINDOWS ON) ENDIF() VERBOSE_OPTION(USE_HIDAPI "Use HIDAPI instead of libusb" ${IS_WINDOWS}) +#option(USE_HIDAPI "Use HIDAPI instead of libusb" ${IS_WINDOWS}) VERBOSE_OPTION(USE_ASAN "Use address sanitizer" OFF) VERBOSE_OPTION(USE_MSAN "Use memory sanitizer" OFF) VERBOSE_OPTION(ENABLE_TESTS "Enable build / execution of tests" OFF)