From ab4c8056e06b915475c67afa42e5295a311044ad Mon Sep 17 00:00:00 2001 From: James Zern Date: Wed, 3 Aug 2016 19:55:18 -0700 Subject: [PATCH] cpu.cmake: improve webp_check_compiler_flag output WEBP_HAVE_FLAG_LOCAL -> WEBP_HAVE_FLAG_${WEBP_SIMD_FLAG} this will include the flag being tested in the output: -- Performing Test WEBP_HAVE_FLAG_NEON Change-Id: I1c0a143a857b16e4eb1fcf8b23c176380a5fef29 (cherry picked from commit ee1057e3b133afe95d904e68166744dad2a0a3d0) --- cmake/cpu.cmake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmake/cpu.cmake b/cmake/cpu.cmake index 8a80f4f4..b2c91b5e 100644 --- a/cmake/cpu.cmake +++ b/cmake/cpu.cmake @@ -1,7 +1,7 @@ ## Check for SIMD extensions. function(webp_check_compiler_flag WEBP_SIMD_FLAG) - unset(WEBP_HAVE_FLAG_LOCAL CACHE) + unset(WEBP_HAVE_FLAG_${WEBP_SIMD_FLAG} CACHE) check_c_source_compiles(" #include \"${CMAKE_CURRENT_LIST_DIR}/../src/dsp/dsp.h\" int main(void) { @@ -10,9 +10,9 @@ function(webp_check_compiler_flag WEBP_SIMD_FLAG) #endif return 0; } - " WEBP_HAVE_FLAG_LOCAL + " WEBP_HAVE_FLAG_${WEBP_SIMD_FLAG} ) - if(WEBP_HAVE_FLAG_LOCAL) + if(WEBP_HAVE_FLAG_${WEBP_SIMD_FLAG}) set(WEBP_HAVE_${WEBP_SIMD_FLAG} 1 PARENT_SCOPE) else() set(WEBP_HAVE_${WEBP_SIMD_FLAG} 0 PARENT_SCOPE)