You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "James E. King, III (JIRA)" <ji...@apache.org> on 2016/11/10 21:37:58 UTC

[jira] [Resolved] (THRIFT-3958) CMake WITH_MT option for windows static runtime linking does not support the cmake build type RelWithDebInfo

     [ https://issues.apache.org/jira/browse/THRIFT-3958?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James E. King, III resolved THRIFT-3958.
----------------------------------------
       Resolution: Fixed
    Fix Version/s: 0.11.0

> CMake WITH_MT option for windows static runtime linking does not support the cmake build type RelWithDebInfo
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: THRIFT-3958
>                 URL: https://issues.apache.org/jira/browse/THRIFT-3958
>             Project: Thrift
>          Issue Type: Bug
>          Components: C++ - Compiler, C++ - Library
>    Affects Versions: 0.9.3
>         Environment: Visual Studio 2010, CMake 3.6
>            Reporter: James E. King, III
>            Assignee: James E. King, III
>            Priority: Trivial
>             Fix For: 0.11.0
>
>
> There is code in DefinePlatformSpecifc.cmake (note the file name has a typo in it) that allows one to set -DWITH_MT=ON and that will force the build to use a static runtime link.  This works for debug and release builds, but not for RelWithDebInfo builds because the list in the cmake file is incomplete.
> It would be nice to switch to the ucm.cmake tools to make this a bit easier, but to fix this just a couple lines need to be added to that define cmake.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)