Commit b4946261 authored by EYRAUD-DUBOIS Lionel's avatar EYRAUD-DUBOIS Lionel

Look for threads in Cmake for proper linking

parent 4d949a78
......@@ -9,6 +9,9 @@ include_directories("include")
find_package(LibRec REQUIRED)
include_directories(${LIBREC_INCLUDE_DIRS})
set(THREADS_PREFER_PTHREAD_FLAG)
find_package(Threads REQUIRED)
add_subdirectory("core")
add_subdirectory("schedulers")
......@@ -32,6 +35,10 @@ target_link_libraries(pmtool core)
target_link_libraries(pmtool schedulers)
target_link_libraries(pmtool ${LIBREC_LIBRARIES})
if(THREADS_FOUND)
target_link_libraries(pmtool Threads::Threads)
endif()
if(CPLEX_FOUND)
target_link_libraries(pmtool bounds)
......
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