From dc073f9c1d9d7b1e608406abd16ae8ae64eeab96 Mon Sep 17 00:00:00 2001 From: elms Date: Fri, 3 Dec 2021 16:49:55 -0800 Subject: [PATCH] cmake: add back de-duplication and fix formatting --- CMakeLists.txt | 2 +- cmake/functions.cmake | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 503d1dd2f..c8498c1f3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -200,7 +200,7 @@ add_option("WOLFSSL_32BIT" ${WOLFSSL_32BIT_HELP_STRING} "no" "yes;no") set(WOLFSSL_16BIT_HELP_STRING "Enables 16-bit support (default: disabled)") add_option("WOLFSSL_16BIT" ${WOLFSSL_16BIT_HELP_STRING} "no" "yes;no") if(WOLFSSL_16BIT) - list(APPEND WOLFSSL_DEFINITIONS "-DWC_16BIT_CPU") + list(APPEND WOLFSSL_DEFINITIONS "-DWC_16BIT_CPU") endif() # Support for disabling all ASM diff --git a/cmake/functions.cmake b/cmake/functions.cmake index 3825fc26c..0b03a6716 100644 --- a/cmake/functions.cmake +++ b/cmake/functions.cmake @@ -887,7 +887,7 @@ function(generate_lib_src_list LIB_SOURCES) endfunction() function(add_to_options_file DEFINITIONS OPTION_FILE) - #list(REMOVE_DUPLICATES DEFINITIONS) + list(REMOVE_DUPLICATES DEFINITIONS) foreach(DEF IN LISTS DEFINITIONS) if(DEF MATCHES "^-D") if(DEF MATCHES "^-D(N)?DEBUG(=.+)?")