Skip to content
Snippets Groups Projects
Commit 2202135d authored by Dominic Kempf's avatar Dominic Kempf
Browse files

[!337] automatically add pthread option to autotune targets

Merge branch 'feature/automatically-add-pthread' into 'master'

ref:extensions/dune-codegen this need cmake 3.1, if the cmake version should
stay at 2.8 I could find another way to link it.

fixes [#153]

See merge request [extensions/dune-codegen!337]

  [#153]: gitlab.dune-project.org/NoneNone/issues/153
  [extensions/dune-codegen!337]: gitlab.dune-project.org/extensions/dune-codegen/merge_requests/337


Closes #153
parents c3fbb3e7 87bb9d07
No related branches found
No related tags found
No related merge requests found
cmake_minimum_required(VERSION 2.8.12)
cmake_minimum_required(VERSION 3.1.3)
project(dune-codegen CXX)
if(NOT (dune-common_DIR OR dune-common_ROOT OR
......
......@@ -24,6 +24,7 @@ add_subdirectory(test)
add_executable(_autotune_target EXCLUDE_FROM_ALL _autotune.cc)
target_compile_options(_autotune_target PUBLIC -fno-strict-aliasing)
if(benchmark_FOUND)
target_link_libraries(_autotune_target benchmark)
find_package(Threads)
if(benchmark_FOUND AND Threads_FOUND)
target_link_libraries(_autotune_target benchmark Threads::Threads)
endif()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment