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!
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

Reply via email to