Skip to content
This repository has been archived by the owner on May 18, 2019. It is now read-only.

Commit

Permalink
fix windows builds add libs wsock32 ws2_32
Browse files Browse the repository at this point in the history
  • Loading branch information
adrpo authored and OpenModelica-Hudson committed Nov 25, 2016
1 parent 3a460b5 commit 6b059e0
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ if(NOT BUILD_SHARED_LIBS)
set_target_properties(${OMCFactoryName} PROPERTIES COMPILE_DEFINITIONS "RUNTIME_STATIC_LINKING;ENABLE_SUNDIALS_STATIC")
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})
ENDIF(WIN32)
add_precompiled_header(${OMCFactoryName} Include/Core/Modelica.h)

install(TARGETS ${OMCFactoryName} DESTINATION ${LIBINSTALLEXT})
Expand Down

0 comments on commit 6b059e0

Please sign in to comment.