[cmake-developers] [CMake 0014903]: InstallRequiredSystemLibraries does not work with MSVC 2013

Mantis Bug Tracker mantis at public.kitware.com
Mon May 5 03:35:34 EDT 2014


The following issue has been SUBMITTED. 
====================================================================== 
http://www.cmake.org/Bug/view.php?id=14903 
====================================================================== 
Reported By:                Felix Krause
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   14903
Category:                   Modules
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2014-05-05 03:35 EDT
Last Modified:              2014-05-05 03:35 EDT
====================================================================== 
Summary:                    InstallRequiredSystemLibraries does not work with
MSVC 2013
Description: 
The MBCS (Multi-Byte Character Set) has been deprecated with VC 2013, and MSVC
no longer ships with an MBCS-version of MFC by default. However, it can be
downloaded as an add-on here [1].

The InstallRequiredSystemLibraries module requires the MBCS version of the
library even if the unicode version is used. So the user has to install an
add-on he does not use just to be able to use the module.


 [1]: http://msdn.microsoft.com/en-us/library/dn251007.aspx

Steps to Reproduce: 
Install Visual Studio 2013 Professional and select the MFC libraries as optional
component (otherwise they won't be available at all).

Create a CMake project with these lines:

    set(CMAKE_INSTALL_MFC_LIBRARIES ON) 
    include(InstallRequiredSystemLibraries)

Try to create an MSVC 2013 project with it. You get the following error:

    CMake Warning at C:/Program Files (x86)/CMake
2.8/share/cmake-2.8/Modules/InstallRequiredSystemLibraries.cmake:351 (message):
      system runtime library file does not exist: 'C:/Program Files
      (x86)/Microsoft Visual Studio
      12.0/VC/redist/x86/Microsoft.VC120.MFC/mfc120.dll'

Additional Information: 
The patch attached removes the dependency on the MBCS version for MSVC 12 (=
2013) onward.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2014-05-05 03:35 Felix Krause   New Issue                                    
2014-05-05 03:35 Felix Krause   File Added: InstallRequiredSystemLibraries.patch
                   
======================================================================



More information about the cmake-developers mailing list