Compared to the internal stl build (msbuild), the cmake build is missing the following compiler option for 64-bit builds: /guard:ehcont
To reproduce, use cmake to build the x64 target and then link to the .lib (shared dll). This results in the following warning:
msvcprt.lib(vector_algorithms.cpp.obj) : warning LNK4291: module may contain '__except' (Structured Exception Handling) but was not compiled with /guard:ehcont; generating conservative metadata
When linking to the msvcprt.lib library provided by Visual Studio, there is no warning.
Compared to the internal stl build (msbuild), the cmake build is missing the following compiler option for 64-bit builds: /guard:ehcont
To reproduce, use cmake to build the x64 target and then link to the .lib (shared dll). This results in the following warning:
msvcprt.lib(vector_algorithms.cpp.obj) : warning LNK4291: module may contain '__except' (Structured Exception Handling) but was not compiled with /guard:ehcont; generating conservative metadataWhen linking to the msvcprt.lib library provided by Visual Studio, there is no warning.