[CMake] how to completelly remove the /Zm1000 compile option via CMakeLists.txt file

Bill Hoffman bill.hoffman at kitware.com
Tue Sep 22 13:38:09 EDT 2009


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.

-Bill



More information about the CMake mailing list