Drop down to CMake 2.8.11, and drop INTERFACE since that version doesn't

support it.
This commit is contained in:
Geoff Romer 2015-04-02 15:24:48 -07:00 committed by Dominic Hamon
parent 3078ce9bc5
commit dcb1a3dad4
2 changed files with 2 additions and 2 deletions

View file

@ -1,4 +1,4 @@
cmake_minimum_required (VERSION 2.8.12) cmake_minimum_required (VERSION 2.8.11)
project (benchmark) project (benchmark)
option(BENCHMARK_ENABLE_TESTING "Enable testing of the benchmark library." ON) option(BENCHMARK_ENABLE_TESTING "Enable testing of the benchmark library." ON)

View file

@ -20,7 +20,7 @@ endif()
add_library(benchmark ${SOURCE_FILES} ${RE_FILES}) add_library(benchmark ${SOURCE_FILES} ${RE_FILES})
find_package(Threads REQUIRED) find_package(Threads REQUIRED)
target_link_libraries(benchmark INTERFACE ${CMAKE_THREAD_LIBS_INIT}) target_link_libraries(benchmark ${CMAKE_THREAD_LIBS_INIT})
set_target_properties(benchmark PROPERTIES set_target_properties(benchmark PROPERTIES
OUTPUT_NAME "benchmark" OUTPUT_NAME "benchmark"