From b482cf083ff2eb4c6f236166fd08dd27e00562c6 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Wed, 20 Jul 2016 14:29:24 +0800 Subject: [PATCH] cmake: use HAVE_ARMV8_CRC not ${HAVE_ARMV8_CRC} as this variable could be undefined. Signed-off-by: Kefu Chai --- src/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.39.5