VS: Bad handling of /STACK:reserve[, commit] linker flag
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.
Changing StackReserveSize i understand:the below commond is working fine. set(CMAKE_CXX_STACK_SIZE ${CMAKE_CXX_STACK_SIZE} /STACK:1200000)
But how we can change StackcommiteSize ? I tried below commands and some more similar combinations but its not working. set(CMAKE_CXX_STACK_SIZE ${CMAKE_CXX_STACK_SIZE} /STACK:"2048,1024") set(CMAKE_CXX_STACK_SIZE ${CMAKE_CXX_STACK_SIZE} /STACK:2048[,1024])
ANY idea guys ?
Edited by Brad King