MantisBT - CMake
View Issue Details
0011794CMakeCMakepublic2011-02-04 04:532011-06-06 18:25
govage 
David Cole 
urgentminoralways
closedfixed 
WindowsWindows
CMake-2-8 
CMake 2.8.4CMake 2.8.4 
0011794: Wrong behavior of InstallRequiredSystemLibraries module under Visual Studio 2010
If using Visual Studio 2010, InstallRequiredSystemLibraries works incorrectly if CMAKE_INSTALL_DEBUG_LIBRARIES variable is set: msvc?100d.dll files are not found when making the installation.
install(TARGETS someTarget RUNTIME DESTINATION bin LIBRARY DESTINATION bin ARCHIVE DESTINATION bin)

set(CMAKE_INSTALL_DEBUG_LIBRARIES 1)
INCLUDE(InstallRequiredSystemLibraries)
To correct this issue in the file share\cmake-2.8\Modules\InstallRequiredSystemLibraries.cmake replace the line:

"${MSVC10_REDIST_DIR}/Debug_NonRedist/${CMAKE_MSVC_ARCH}/Microsoft.VC90.DebugCRT")

by the line:

"${MSVC10_REDIST_DIR}/Debug_NonRedist/${CMAKE_MSVC_ARCH}/Microsoft.VC100.DebugCRT")
No tags attached.
Issue History
2011-02-04 04:53govageNew Issue
2011-02-04 08:39David ColeAssigned To => David Cole
2011-02-04 08:39David ColeStatusnew => assigned
2011-02-04 08:39David ColeNote Added: 0025279
2011-02-04 08:39David ColeStatusassigned => resolved
2011-02-04 08:39David ColeFixed in Version => CMake 2.8.4
2011-02-04 08:39David ColeResolutionopen => fixed
2011-02-04 08:40David ColeTarget Version => CMake 2.8.4
2011-06-06 18:25David ColeStatusresolved => closed
2011-06-06 18:25David ColeNote Added: 0026703

Notes
(0025279)
David Cole   
2011-02-04 08:39   
This and other problems with "InstallRequiredSystemLibraries" are fixed in the CMake 2.8.4-rc2 release candidate that is in the testing phase now.

Please download 2.8.4-rc2 and try it. Verify that this problem is fixed for you.

Thanks,
David Cole
(0026703)
David Cole   
2011-06-06 18:25   
Closing resolved issues that have not been updated in more than 3 months.