Skip to content
Snippets Groups Projects
Commit a2a9ceec authored by Christoph Grüninger's avatar Christoph Grüninger
Browse files

[CMake] Preventing threading checks to get passed -std=c++11

It caused that pthread.h was not found as clang does not like
to get -std=c++11 passed.
parent 21662404
Branches
Tags
No related merge requests found
......@@ -197,6 +197,8 @@ check_cxx_source_compiles("
" HAVE_NOEXCEPT_SPECIFIER
)
cmake_pop_check_state()
# find the threading library
find_package(Threads)
set(STDTHREAD_LINK_FLAGS "${CMAKE_THREAD_LIBS_INIT}"
......@@ -273,5 +275,3 @@ if(NOT STDTHREAD_WORKS)
"STDTHREAD_LINK_FLAGS. If you think this test is wrong, set the cache "
"variable STDTHREAD_WORKS.")
endif(NOT STDTHREAD_WORKS)
cmake_pop_check_state()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment