Commit caa7dbc0 by Christophe Gonzales

fixed Clang pthread issue

parent 18d63002
Pipeline #20305674 failed with stages
in 12 minutes 0 seconds
......@@ -20,6 +20,7 @@ include("modules.txt")
include(Modules.agrum)
include(Nanodbc.agrum)
include(threads)
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/cmake/config.h.in" "${AGRUM_BINARY_DIR}/agrum/config.h")
......
......@@ -4,7 +4,6 @@ find_package (Threads)
if (UNIX)
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread")
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -lpthread")
endif(UNIX)
set (CMAKE_SHARED_LIBRARY_CXX_FLAGS "${CMAKE_SHARED_LIBRARY_CXX_FLAGS} ${CMAKE_THREAD_LIBS_INIT} -pthread -lpthread")
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -pthread -lpthread")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment