[CMake] InstallRequiredSystemLibraries.cmake
David Cole
david.cole at kitware.com
Thu Jan 13 13:34:34 EST 2011
You get just Release by default.
Then, if you set CMAKE_INSTALL_DEBUG_LIBRARIES you get both.
Or, if you set CMAKE_INSTALL_DEBUG_LIBRARIES and
CMAKE_INSTALL_DEBUG_LIBRARIES_ONLY, you get just Debug.
That's what the bug fix for
http://public.kitware.com/Bug/view.php?id=11141 was. (Patch kindly
provided by Mike McQuaid -- thanks, Mike!!)
I think that should cover all use cases, even if it's not in the most
elegant way possible. (Because we have to keep doing what we're doing
for backwards compat...)
And again, let me remind everyone that it is not legal to
re-distribute the Debug libraries from Visual Studio. People who need
to use them are expected to have a valid installation of Visual Studio
on the machine where they need them. We provide a way for you to get
them via CMake easily to make your debugging lives easier... not to
encourage you to *actually* re-distribute them as part of an installer
meant for general consumption.
Let me know if you need something more than what's in there now.
David
On Thu, Jan 13, 2011 at 1:24 PM, Michael Jackson
<mike.jackson at bluequartz.net> wrote:
> Along those same lines would it be possible to have separate variables for the Debug and Release runtime libraries? I _think_ I need this based on some previous conversations on this list. Comments welcome.
>
> --
> Mike Jackson <www.bluequartz.net>
>
> On Jan 13, 2011, at 1:22 PM, David Cole wrote:
>
>> Thanks for this report.
>>
>> The commit that fixes this is now in our 'next' branch:
>> http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=fc144924a0782b37c320378ac76482f0534c7530
>>
>> Fixing it, and adding a warning about required files that do not exist
>> revealed several other issues when using this file with VS10.
>>
>> The commit also fixes those issues.
>>
>> We'll do our best to include this fix in the 2.8.4-rc2 candidate next week.
>>
>>
>> Thanks,
>> David
>>
>>
>> On Wed, Jan 12, 2011 at 7:16 PM, J Decker <d3ck0r at gmail.com> wrote:
>>> This currently has no support for watcom's libraries, I'm working on
>>> adding that in the same method basically that visual studio uses for
>>> all of its versions; this is still in progress but I'll come up with
>>> soemhting like a patch in abit.
>>>
>>> While doing this I found that there is a bug with VS2010 support..
>>>
>>> There is a reference of VC90 that should be VC100 for copying the
>>> debug libraries.
>>>
>>>
>>> line 135
>>> SET(MSVC10_CRT_DIR
>>> "${MSVC10_REDIST_DIR}/Debug_NonRedist/${CMAKE_MSVC_ARCH}/Microsoft.VC90.DebugCRT")
>>> SET(__install__libs ${__install__libs}
>>> "${MSVC10_CRT_DIR}/Microsoft.VC100.DebugCRT.manifest"
>>> "${MSVC10_CRT_DIR}/msvcp100d.dll"
>>> "${MSVC10_CRT_DIR}/msvcr100d.dll"
>>> )
>>>
>>> should be
>>>
>>> SET(MSVC10_CRT_DIR
>>> "${MSVC10_REDIST_DIR}/Debug_NonRedist/${CMAKE_MSVC_ARCH}/Microsoft.VC100.DebugCRT")
>>> SET(__install__libs ${__install__libs}
>>> "${MSVC10_CRT_DIR}/Microsoft.VC100.DebugCRT.manifest"
>>> "${MSVC10_CRT_DIR}/msvcp100d.dll"
>>> "${MSVC10_CRT_DIR}/msvcr100d.dll"
>>> )
>>> _______________________________________________
>>> Powered by www.kitware.com
>>>
>>> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>>>
>>> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://www.cmake.org/mailman/listinfo/cmake
>>>
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.cmake.org/mailman/listinfo/cmake
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>
More information about the CMake
mailing list