Skip to content

Commit

Permalink
Compile with /MD for MSVC.
Browse files Browse the repository at this point in the history
  - This seems to be what is picked by default by cmake. OMTLMSimulator
    does not need or use CMake right now, however it links to libraries
    built by CMake (within OMSimulator, e.g., libxml2) which get compiled
    with /MD. So set it here as well to avoid link time failures.
  • Loading branch information
mahge committed Jul 18, 2023
1 parent 39004a0 commit e0693c4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion 3rdParty/misc/Makefile.msvc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CC=cl -EHsc /MP
CC=cl -EHsc /MP /MD
cc=cl

INCLUDES= /Iinclude
Expand Down
2 changes: 1 addition & 1 deletion 3rdParty/rtime/Makefile.msvc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CC=cl -EHsc /MP
CC=cl -EHsc /MP /MD
cc=cl

INCLUDES=/Iinclude /I../../../3rdParty/pthread/install/win/include
Expand Down
2 changes: 1 addition & 1 deletion common/Makefile.msvc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ BUILDDIR=..\build\win
TARGETDIR=..\bin

TARGET=omtlmsimulator.dll
CC=cl /DMSC_VER /DWIN32 /D_WIN32 /EHsc /DNOMINMAX /GR /DUSE_THREADS /MP /c /DLIBXML_STATIC
CC=cl /DMSC_VER /DWIN32 /D_WIN32 /EHsc /DNOMINMAX /GR /DUSE_THREADS /MP /MD /c /DLIBXML_STATIC
cc=cl
LINK=link /DLL
AR=ar
Expand Down

0 comments on commit e0693c4

Please sign in to comment.