[CMake] how to completelly remove the /Zm1000 compile option via CMakeLists.txt file
Tyler Roscoe
tyler at cryptio.net
Tue Sep 22 16:18:29 EDT 2009
On Tue, Sep 22, 2009 at 01:38:09PM -0400, Bill Hoffman wrote:
> Tyler Roscoe wrote:
> >On Tue, Sep 22, 2009 at 05:29:07PM +0400, Anatoly Shirokov wrote:
> >>How to completelly remove the /Zm1000 compile option via CMakeLists.txt
> >>file?
> >
> >We use:
> >
> >string (REPLACE "/Zm1000" " " CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})
> >
>
> Just curious as to why this is causing trouble? I think the flag only
> affects the amount of memory used by the compiler during the build. It
> should not affect the resulting compiled code.
I should say we used to use this; it's commented out now.
I think the only reason we disabled it initially was so that our CMake
build system has the same settings as our legacy build system.
tyler
More information about the CMake
mailing list