[CMake] Disable optimizations for an individual project
    Brad King 
    brad.king at kitware.com
       
    Mon Oct 23 12:43:14 EDT 2006
    
    
  
Reggie Burnett wrote:
> What’s the best approach to disabling optimizations for a particular
> project?  We still want to use release settings just with optimizations
> turned off and then just for that single project.
Unfortunately there is no good approach for this right now.  You can try
removing optimization flags from CMAKE_C_FLAGS_RELEASE and
CMAKE_CXX_FLAGS_RELEASE with STRING(REGEX).  If your one target is in
its own subdirectory you don't have to worry about affecting other
targets with this change.
-Brad
    
    
More information about the CMake
mailing list