aboutsummaryrefslogtreecommitdiff
path: root/cmake/CXXFeatureCheck.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/CXXFeatureCheck.cmake')
-rw-r--r--cmake/CXXFeatureCheck.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/cmake/CXXFeatureCheck.cmake b/cmake/CXXFeatureCheck.cmake
index 059d510..62e6741 100644
--- a/cmake/CXXFeatureCheck.cmake
+++ b/cmake/CXXFeatureCheck.cmake
@@ -27,6 +27,11 @@ function(cxx_feature_check FILE)
return()
endif()
+ if (ARGC GREATER 1)
+ message(STATUS "Enabling additional flags: ${ARGV1}")
+ list(APPEND BENCHMARK_CXX_LINKER_FLAGS ${ARGV1})
+ endif()
+
if (NOT DEFINED COMPILE_${FEATURE})
message(STATUS "Performing Test ${FEATURE}")
if(CMAKE_CROSSCOMPILING)