[cmake-developers] Bad handling of /STACK:reserve[, commit] linker flag
Robert Goulet
Robert.Goulet at autodesk.com
Wed Dec 3 10:57:02 EST 2014
Hello,
When trying to pass the linker flag "/STACK:reserve[,commit]" via CMake to the Visual Studio linker, the optional argument 'commit' is not passed correctly. It just ends up on the same argument as the 'reserve' argument as if it was a single argument, which is an error for Visual Studio linker.
Visual Studio linker requires us to pass the 'commit' argument like this:
/STACK:"2048"",1024"
In CMake script, I tried every combination possible to get this string passed correctly to Visual Studio, but it always end up being passed as:
/STACK:"2048,1024"
Someone reported the same issue some time ago in this thread: http://cmake.3232098.n2.nabble.com/CMake-2-8-12-2-Visual-Studio-10-generator-Bad-handling-of-STACK-reserve-commit-compilation-flag-td7587920.html
Is there a work-around for this?
Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20141203/0b2f6296/attachment.html>
More information about the cmake-developers
mailing list