From: Kefu Chai Date: Wed, 20 Jul 2016 06:29:24 +0000 (+0800) Subject: cmake: use HAVE_ARMV8_CRC not ${HAVE_ARMV8_CRC} X-Git-Tag: v11.0.1~691^2~8 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=b482cf083ff2eb4c6f236166fd08dd27e00562c6;p=ceph-ci.git cmake: use HAVE_ARMV8_CRC not ${HAVE_ARMV8_CRC} as this variable could be undefined. Signed-off-by: Kefu Chai --- diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 24f2a2446f6..a8a83675776 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -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)