]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: use string(APPEND ..) to append to string
authorKefu Chai <kchai@redhat.com>
Mon, 16 Aug 2021 09:29:35 +0000 (17:29 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 16 Aug 2021 09:29:37 +0000 (17:29 +0800)
more readable and less repeating this way.

Signed-off-by: Kefu Chai <kchai@redhat.com>
cmake/modules/BuildSPDK.cmake

index c5351956c69575322afa2485e0094371b13271fb..73ead20c8035ddf17d047d6b8775a1e8ea43c4df 100644 (file)
@@ -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")