Changeset c4208ad in OpenModelica


Ignore:
Timestamp:
2020-10-21T14:04:17+02:00 (3 years ago)
Author:
Mahder Gebremedhin <mahder.gebremedhin@…>
Children:
cb001a0b
Parents:
965cc7b7
git-author:
Mahder Gebremedhin <mahder.gebremedhin@…> (09/16/20 15:03:29)
git-committer:
Mahder Gebremedhin <mahder.gebremedhin@…> (10/21/20 14:04:17)
Message:

[cmake] Fix Windows/MinGW only link libraries.

File:
1 edited

Legend:

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

    r2d64a9a rc4208ad  
    2525                                    ${OMC_SIMRT_GC_SOURCES})
    2626
    27 target_link_libraries(OpenModelicaRuntimeC PUBLIC dbghelp)
    28 target_link_libraries(OpenModelicaRuntimeC PUBLIC regex)
     27if(WIN32)
     28  target_link_libraries(OpenModelicaRuntimeC PUBLIC dbghelp)
     29  target_link_libraries(OpenModelicaRuntimeC PUBLIC regex)
     30endif(WIN32)
     31
    2932target_link_libraries(OpenModelicaRuntimeC PUBLIC omc::3rd::omcgc)
    30 target_compile_options(OpenModelicaRuntimeC PRIVATE $<$<CXX_COMPILER_ID:GNU>:-Werror=implicit-function-declaration>)
    3133
    3234target_include_directories(OpenModelicaRuntimeC INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})
Note: See TracChangeset for help on using the changeset viewer.