Commit 505be96a by Marat Dukhan Committed by Dominic Hamon

Avoid using CMake 3.6 feature list(FILTER ...) (#612)

list(FILTER ...) is a CMake 3.6 feature, but benchmark targets CMake 2.8.12
parent 1301f53e
...@@ -11,7 +11,10 @@ file(GLOB ...@@ -11,7 +11,10 @@ file(GLOB
*.cc *.cc
${PROJECT_SOURCE_DIR}/include/benchmark/*.h ${PROJECT_SOURCE_DIR}/include/benchmark/*.h
${CMAKE_CURRENT_SOURCE_DIR}/*.h) ${CMAKE_CURRENT_SOURCE_DIR}/*.h)
list(FILTER SOURCE_FILES EXCLUDE REGEX "benchmark_main\\.cc") file(GLOB BENCHMARK_MAIN "benchmark_main.cc")
foreach(item ${BENCHMARK_MAIN})
list(REMOVE_ITEM SOURCE_FILES "${item}")
endforeach()
add_library(benchmark ${SOURCE_FILES}) add_library(benchmark ${SOURCE_FILES})
set_target_properties(benchmark PROPERTIES set_target_properties(benchmark PROPERTIES
......
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