cmake: Do not rerun try_compile invocations
Change-Id: I5eccf9f810d7ee55a311884bd5cf483f8086bae6 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
This commit is contained in:
parent
b388bc7e77
commit
04ff8b5b6a
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user