Changeset 57178daf in OpenModelica


Ignore:
Timestamp:
2022-05-19T13:52:34+02:00 (2 years ago)
Author:
Mahder Gebremedhin <mahder.geb@…>
Parents:
ffc3407d
git-author:
Mahder Gebremedhin <mahder.geb@…> (05/19/22 13:33:24)
git-committer:
Mahder Gebremedhin <mahder.geb@…> (05/19/22 13:52:34)
Message:

Minor fixes.

  • Link wsock32 to libSimulationRuntimeC instead of libOpenModelicaRuntimeC. It is not needed by the latter.
  • If on linux, assume lapack libraries are "-llapack -lblas" for CPP runtime. This needs proper portable fix but it will be done later. Removal of it caused some regressions on the CMake based testsuite test.
Location:
OMCompiler/SimulationRuntime
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • OMCompiler/SimulationRuntime/c/cmake_3.14.cmake

    rffc3407d r57178daf  
    5050  target_link_libraries(OpenModelicaRuntimeC PUBLIC dbghelp)
    5151  target_link_libraries(OpenModelicaRuntimeC PUBLIC regex)
    52   target_link_libraries(OpenModelicaRuntimeC PUBLIC wsock32)
    5352  target_link_options(OpenModelicaRuntimeC PRIVATE  -Wl,--export-all-symbols)
    5453elseif(MSVC)
     
    8887target_link_libraries(SimulationRuntimeC PUBLIC ${LAPACK_LIBRARIES})
    8988
     89if(WIN32)
     90  target_link_libraries(SimulationRuntimeC PUBLIC wsock32)
     91endif()
     92
    9093if(MINGW)
    9194  target_link_options(SimulationRuntimeC PRIVATE  -Wl,--export-all-symbols)
    9295elseif(MSVC)
    93   target_link_libraries(SimulationRuntimeC PUBLIC wsock32)
    9496  set_target_properties(SimulationRuntimeC PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS true)
    9597endif(MINGW)
  • OMCompiler/SimulationRuntime/cpp/Core/CMakeLists.txt

    rd632ee4a r57178daf  
    88set(Boost_LIBS_ ".")
    99set(LAPACK_LIBS_ ".")
    10 set(LAPACK_LIBRARIES_ "")
    1110set(SYSTEM_CFLAGS ${SYSTEM_CFLAGS} "-DOMC_BUILD -fPIC -DUSE_THREAD")
     11if(UNIX)
     12  set(LAPACK_LIBRARIES_ "-llapack -lblas")
     13else()
     14  set(LAPACK_LIBRARIES_ "")
     15endif()
    1216
    1317configure_file(Modelica/ModelicaLibraryConfig_gcc.inc.in ${CMAKE_CURRENT_BINARY_DIR}/ModelicaLibraryConfig_gcc.inc)
Note: See TracChangeset for help on using the changeset viewer.