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)