From: Kefu Chai Date: Mon, 16 Aug 2021 09:29:35 +0000 (+0800) Subject: cmake: use string(APPEND ..) to append to string X-Git-Tag: v17.1.0~1111^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=706997b7e62b33e95605283da3b4af736abbe516;p=ceph.git cmake: use string(APPEND ..) to append to string more readable and less repeating this way. Signed-off-by: Kefu Chai --- diff --git a/cmake/modules/BuildSPDK.cmake b/cmake/modules/BuildSPDK.cmake index c5351956c695..73ead20c8035 100644 --- a/cmake/modules/BuildSPDK.cmake +++ b/cmake/modules/BuildSPDK.cmake @@ -16,7 +16,7 @@ macro(build_spdk) include(CheckCCompilerFlag) check_c_compiler_flag("-Wno-address-of-packed-member" HAS_WARNING_ADDRESS_OF_PACKED_MEMBER) if(HAS_WARNING_ADDRESS_OF_PACKED_MEMBER) - set(spdk_CFLAGS "${spdk_CFLAGS} -Wno-address-of-packed-member") + string(APPEND spdk_CFLAGS " -Wno-address-of-packed-member") endif() include(ExternalProject) if(CMAKE_SYSTEM_PROCESSOR MATCHES "amd64|x86_64|AMD64")