mirror of
https://github.com/google/benchmark.git
synced 2025-01-13 21:30:14 +08:00
Add caching for cxx_feature_check (#573)
This commit is contained in:
parent
64d4805dd7
commit
105ac14b2f
@ -27,6 +27,7 @@ function(cxx_feature_check FILE)
|
||||
return()
|
||||
endif()
|
||||
|
||||
if (NOT DEFINED COMPILE_${FEATURE})
|
||||
message("-- Performing Test ${FEATURE}")
|
||||
if(CMAKE_CROSSCOMPILING)
|
||||
try_compile(COMPILE_${FEATURE}
|
||||
@ -47,6 +48,7 @@ function(cxx_feature_check FILE)
|
||||
CMAKE_FLAGS ${BENCHMARK_CXX_LINKER_FLAGS}
|
||||
LINK_LIBRARIES ${BENCHMARK_CXX_LIBRARIES})
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(RUN_${FEATURE} EQUAL 0)
|
||||
message("-- Performing Test ${FEATURE} -- success")
|
||||
|
Loading…
Reference in New Issue
Block a user