1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00

[NFC] Apply another commit to comply with old CMake

llvm-svn: 340817
This commit is contained in:
Kirill Bobyrev 2018-08-28 11:05:09 +00:00
parent 1873dcec6b
commit 6145e28722
2 changed files with 6 additions and 1 deletions

View File

@ -11,3 +11,5 @@ Changes:
* Bazel BUILD files are removed from the library
* https://github.com/google/benchmark/commit/f85304e4e3a0e4e1bf15b91720df4a19e90b589f
is applied on top of the v1.4.1 to silence compiler warnings
* https://github.com/google/benchmark/commit/505be96ab23056580a3a2315abba048f4428b04e
is applied to comply with the LLVM's required CMake version

View File

@ -11,7 +11,10 @@ file(GLOB
*.cc
${PROJECT_SOURCE_DIR}/include/benchmark/*.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})
set_target_properties(benchmark PROPERTIES