]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
cmake: use HAVE_ARMV8_CRC not ${HAVE_ARMV8_CRC}
authorKefu Chai <kchai@redhat.com>
Wed, 20 Jul 2016 06:29:24 +0000 (14:29 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 20 Jul 2016 06:47:52 +0000 (14:47 +0800)
as this variable could be undefined.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/CMakeLists.txt

index 24f2a2446f64be7e1a9bb545442e30593ea4f025..a8a836757762bd56f54174cd8c02096456d19fe0 100644 (file)
@@ -503,11 +503,11 @@ if(${HAVE_GPERFTOOLS})
   target_link_libraries(common profiler)
 endif(${HAVE_GPERFTOOLS})
 
-if(${HAVE_ARMV8_CRC})
+if(HAVE_ARMV8_CRC)
   add_library(common_crc_aarch64 STATIC common/crc32c_aarch64.c)
   set_target_properties(common_crc_aarch64 PROPERTIES COMPILE_FLAGS "${CMAKE_C_FLAGS} ${ARM_CRC_FLAGS}")
   target_link_libraries(common common_crc_aarch64)
-endif(${HAVE_ARMV8_CRC})
+endif(HAVE_ARMV8_CRC)
 
 add_library(common_utf8 STATIC common/utf8.c)