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/src/CMakeLists.txt | |
| 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/src/CMakeLists.txt')
| -rw-r--r-- | libcxx/utils/google-benchmark/src/CMakeLists.txt | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libcxx/utils/google-benchmark/src/CMakeLists.txt b/libcxx/utils/google-benchmark/src/CMakeLists.txt index 6dab64b73bd..a65723b0997 100644 --- a/libcxx/utils/google-benchmark/src/CMakeLists.txt +++ b/libcxx/utils/google-benchmark/src/CMakeLists.txt @@ -1,6 +1,11 @@ # Allow the source files to find headers in src/ include_directories(${PROJECT_SOURCE_DIR}/src) +if (DEFINED BENCHMARK_CXX_LINKER_FLAGS) + list(APPEND CMAKE_SHARED_LINKER_FLAGS ${BENCHMARK_CXX_LINKER_FLAGS}) + list(APPEND CMAKE_MODULE_LINKER_FLAGS ${BENCHMARK_CXX_LINKER_FLAGS}) +endif() + # Define the source files set(SOURCE_FILES "benchmark.cc" "colorprint.cc" "commandlineflags.cc" "console_reporter.cc" "csv_reporter.cc" "json_reporter.cc" @@ -19,7 +24,6 @@ endif() add_library(benchmark ${SOURCE_FILES} ${RE_FILES}) - set_target_properties(benchmark PROPERTIES OUTPUT_NAME "benchmark" VERSION ${GENERIC_LIB_VERSION} @@ -27,7 +31,7 @@ set_target_properties(benchmark PROPERTIES ) # Link threads. -target_link_libraries(benchmark ${CMAKE_THREAD_LIBS_INIT}) +target_link_libraries(benchmark ${BENCHMARK_CXX_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT}) # We need extra libraries on Windows if(${CMAKE_SYSTEM_NAME} MATCHES "Windows") |

