diff options
| author | Eric Fiselier <eric@efcs.ca> | 2016-08-29 19:12:01 +0000 |
|---|---|---|
| committer | Eric Fiselier <eric@efcs.ca> | 2016-08-29 19:12:01 +0000 |
| commit | 4d5e91d3075c71c9168d931c94b38c21225e7247 (patch) | |
| tree | b7b3e7e3ecabe8345e9bc94d87c686738421b213 /libcxx/utils/google-benchmark/cmake/CXXFeatureCheck.cmake | |
| parent | edb3c8ccb8785c90cee8b71c4ed8eb13b72f9ae4 (diff) | |
| download | bcm5719-llvm-4d5e91d3075c71c9168d931c94b38c21225e7247.tar.gz bcm5719-llvm-4d5e91d3075c71c9168d931c94b38c21225e7247.zip | |
Update Google Benchmark library.
llvm-svn: 279989
Diffstat (limited to 'libcxx/utils/google-benchmark/cmake/CXXFeatureCheck.cmake')
| -rw-r--r-- | libcxx/utils/google-benchmark/cmake/CXXFeatureCheck.cmake | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libcxx/utils/google-benchmark/cmake/CXXFeatureCheck.cmake b/libcxx/utils/google-benchmark/cmake/CXXFeatureCheck.cmake index 3059024dc08..b106f32b639 100644 --- a/libcxx/utils/google-benchmark/cmake/CXXFeatureCheck.cmake +++ b/libcxx/utils/google-benchmark/cmake/CXXFeatureCheck.cmake @@ -26,7 +26,9 @@ function(cxx_feature_check FILE) endif() message("-- Performing Test ${FEATURE}") try_run(RUN_${FEATURE} COMPILE_${FEATURE} - ${CMAKE_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/cmake/${FILE}.cpp) + ${CMAKE_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/cmake/${FILE}.cpp + CMAKE_FLAGS ${BENCHMARK_CXX_LINKER_FLAGS} + LINK_LIBRARIES ${BENCHMARK_CXX_LIBRARIES}) if(RUN_${FEATURE} EQUAL 0) message("-- Performing Test ${FEATURE} -- success") set(HAVE_${VAR} 1 CACHE INTERNAL "Feature test for ${FILE}" PARENT_SCOPE) |

