From 04ff8b5b6a5e8b940d1535a1302e47e2f6a0377c Mon Sep 17 00:00:00 2001 From: Kevin Funk Date: Mon, 11 Feb 2019 00:20:34 +0100 Subject: [PATCH] cmake: Do not rerun try_compile invocations Change-Id: I5eccf9f810d7ee55a311884bd5cf483f8086bae6 Reviewed-by: Simon Hausmann --- cmake/QtFeature.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmake/QtFeature.cmake b/cmake/QtFeature.cmake index f13f8d477a..7a0df69f9f 100644 --- a/cmake/QtFeature.cmake +++ b/cmake/QtFeature.cmake @@ -396,6 +396,10 @@ endfunction() function(qt_config_compile_test_x86simd extension label) string(TOUPPER ${extension} extension_uppercase) + if (DEFINED TEST_X86SIMD_${extension}) + return() + endif() + try_compile(TEST_X86SIMD_${extension} "${CMAKE_CURRENT_BINARY_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}/config.tests/x86_simd/main.cpp" COMPILE_DEFINITIONS -DQT_COMPILER_SUPPORTS_${extension_uppercase}