From 8d87c66b481c7d447270be7238ad3c10e7ebc5e7 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Thu, 12 Nov 2020 21:00:51 -0800 Subject: Base64 nits (code quality) fixed. This also contains the start of some CMakefile refactoring and clean ups. --- src/supplemental/base64/CMakeLists.txt | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'src/supplemental/base64/CMakeLists.txt') diff --git a/src/supplemental/base64/CMakeLists.txt b/src/supplemental/base64/CMakeLists.txt index b4c92e6a..653ea711 100644 --- a/src/supplemental/base64/CMakeLists.txt +++ b/src/supplemental/base64/CMakeLists.txt @@ -1,6 +1,5 @@ # -# Copyright 2017 Capitar IT Group BV -# Copyright 2018 Staysail Systems, Inc. +# Copyright 2020 Staysail Systems, Inc. # # This software is supplied under the terms of the MIT License, a # copy of which should be located in the distribution where this @@ -8,10 +7,9 @@ # found online at https://opensource.org/licenses/MIT. # -if (NNG_SUPP_BASE64) - set(_SRCS - supplemental/base64/base64.c - supplemental/base64/base64.h) - nng_test(base64_test) - set(NNG_SRCS ${NNG_SRCS} ${_SRCS} PARENT_SCOPE) -endif() +nng_sources_if(NNG_SUPP_BASE64 + base64.c + base64.h) + +nng_test_if(NNG_SUPP_BASE64 + base64_test) -- cgit v1.2.3-70-g09d2