From fb705c89ac9e50e4cdccf4e381c5de4ea8c7f449 Mon Sep 17 00:00:00 2001 From: Francois Budin Date: Fri, 12 Feb 2016 13:51:55 -0500 Subject: [PATCH] BUG: Wrong unparsed arguments variable name Unparsed arguments are saved in _UNPARSED_ARGUMENTS [1]. In this case, is LOCAL_SEM, so the variable containing the unparsed arguments is called LOCAL_SEM_UNPARSED_ARGUMENTS. [1] https://cmake.org/cmake/help/v3.0/module/CMakeParseArguments.html --- CMake/SEMMacroBuildCLI.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMake/SEMMacroBuildCLI.cmake b/CMake/SEMMacroBuildCLI.cmake index 0722037..a0ab3b2 100644 --- a/CMake/SEMMacroBuildCLI.cmake +++ b/CMake/SEMMacroBuildCLI.cmake @@ -49,8 +49,8 @@ macro(SEMMacroBuildCLI) message(STATUS "${curr_opt} = ${LOCAL_SEM_${curr_opt}}") endforeach() endif() - if(LOCAL_SEM_INSTALL_UNPARSED_ARGUMENTS) - message(AUTHOR_WARNING "Unparsed arguments given [${LOCAL_SEM_INSTALL_UNPARSED_ARGUMENTS}]") + if(LOCAL_SEM_UNPARSED_ARGUMENTS) + message(AUTHOR_WARNING "Unparsed arguments given [${LOCAL_SEM_UNPARSED_ARGUMENTS}]") endif() # -------------------------------------------------------------------------- # Sanity checks