[CMake] InstallRequiredSystemLibraries with MSVC9 SP1

Bill Hoffman bill.hoffman at kitware.com
Sun Dec 7 20:38:30 EST 2008


cyril_wobow wrote:

> 
> 
> Thanks Bill for your quick answer. I had read your posts but I just 
> looked too crooked to me :). Your fix works, but -correct me if I am 
> wrong- it consists in having the redist pretend its dlls are the old 
> ones altough they are not? Just to make sure...
> 
I think that is the jist of it.  OTOH, MS has embeded the wrong dll 
references into the exe files it created.  So, one or the other needs to 
be patched.  Seems easier to edit a text file, instead of every exe file 
created.
> PS: one other solution would consist in overring the exe-embedded 
> manifest with an external myexe.exe.manifest file that would refer to 
> the SP1 version of the CRT dlls.
> 
I suppose you could do that.  It would mean bringing along extra files 
that you would not need for any working version of VS.  I really find it 
hard to believe the MS put this bug into SP 1.  It makes it impossible 
to distribute software built with this compiler without a hack.  I guess 
we could make InstallRequiredSystemLibraries "patch" the redist files as 
it copies them if we could detect VS 9 SP 1....  Not sure I know how to 
detect it...


-Bill


More information about the CMake mailing list