Commit 105ac14b by Yangqing Jia Committed by Dominic Hamon

Add caching for cxx_feature_check (#573)

parent 64d4805d
......@@ -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")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment