Opened 6 years ago

Closed 6 years ago

#111 closed defect (fixed)

/MT option for MSVC breaks build with older CMake version

Reported by: ksuehring Owned by:
Priority: minor Milestone: VTM-3.0
Component: VTM Version: VTM-2.2
Keywords: Cc: ksuehring, XiangLi, fbossen, jvet@…

Description

In

https://vcgit.hhi.fraunhofer.de/jvet/VVCSoftware_BMS/merge_requests/86

the compile option /MT is enforced for all MS Visual Studio builds, which results in linking of a static release runtime, in both debug and release mode.

While it is already generally undesirable to link a release runtime in debug mode, it also breaks building in debug mode when using older CMake versions, e.g. CMake 3.7.x

Without that option, CMake selects /MD in release mode for mutithreaded release DLL build and /MDd for mutithreaded debug DLL in debug build.

Change history (2)

comment:1 Changed 6 years ago by ksuehring

Merge request !99 was opened for removing the option

https://vcgit.hhi.fraunhofer.de/jvet/VVCSoftware_VTM/merge_requests/99

comment:2 Changed 6 years ago by ksuehring

  • Milestone set to VTM-3.0
  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.