From 09a3c55f950ac0bad1cf25a96a730205eaf0efec Mon Sep 17 00:00:00 2001 From: Adrian Pop Date: Mon, 16 Mar 2020 00:23:30 +0200 Subject: [PATCH] fix Linux nightly, link with pthread for boost/asio --- .../runtime/src/SimCoreFactory/OMCFactory/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OMCompiler/SimulationRuntime/OMSICpp/runtime/src/SimCoreFactory/OMCFactory/CMakeLists.txt b/OMCompiler/SimulationRuntime/OMSICpp/runtime/src/SimCoreFactory/OMCFactory/CMakeLists.txt index d41012de0d8..6d77af15d7b 100644 --- a/OMCompiler/SimulationRuntime/OMSICpp/runtime/src/SimCoreFactory/OMCFactory/CMakeLists.txt +++ b/OMCompiler/SimulationRuntime/OMSICpp/runtime/src/SimCoreFactory/OMCFactory/CMakeLists.txt @@ -13,7 +13,7 @@ endif(NOT BUILD_SHARED_LIBS) IF(WIN32) target_link_libraries(${OMCFactoryName} ${Boost_LIBRARIES} ${CMAKE_DL_LIBS} ${ExtensionUtilitiesName} wsock32 ws2_32) ELSE(WIN32) -target_link_libraries(${OMCFactoryName} ${Boost_LIBRARIES} ${CMAKE_DL_LIBS} ${ExtensionUtilitiesName}) +target_link_libraries(${OMCFactoryName} ${Boost_LIBRARIES} ${CMAKE_DL_LIBS} ${ExtensionUtilitiesName} pthread) ENDIF(WIN32) add_precompiled_header(${OMCFactoryName} runtime/include/Core/Modelica.h)