Is there a way to change stack size from the Cmake ?
I only found one forum thread mentioning CMAKE_CXX_STACK_SIZE
but I couldn't find the documentation for this command. Ideally the command should work for both Visual Studio C++ and gcc.
相关问题
- How to know full paths to DLL's from .csproj f
- Importing NuGet references through a local project
- Visual Studio 2019 - error MSB8020: The build tool
- 'System.Threading.ThreadAbortException' in
- VS2017 RC - The following error occurred when tryi
相关文章
- How to show location of errors, references to memb
- How to track MongoDB requests from a console appli
- Visual Studio Hangs on Loading UI Library
- Threading in C# , value types and reference types
- How to use Mercurial from Visual Studio 2010?
- gcc/g++ gives me error “CreateProcess: No such fil
- Calls that precede a function's definition can
- Copy different file to output directory for releas
I don't have VS at the moment, but the following three CMake commands all work for me on MinGW/GCC (replace
<target>
with what you entered intoadd_executable()
):OR
OR
Note that according to the CMake documentation, each of these should just add linker flags, not replace any that are already set.
In VS, it looks like you should replace
-Wl,--stack,
with/STACK:
(more on this below) and use an if/else to have different commands for each compiler.Regarding
CMAKE_CXX_STACK_SIZE
, this thread, which is worth a read, says the command isSuch a command can actually be seen on the page linked in your post (not sure if you saw it) as well as in this one: