[CMake] compile options

Bill Hoffman bill.hoffman at kitware.com
Wed Jun 18 08:27:22 EDT 2008


Eric Noulard wrote:
> 2008/6/18 Ingrid Kemgoum <ingrid.kemgoum at gmail.com>:
>> yes i do have read that.
>> it's why i've tried CMAKE_CXX_FLAGS_<config>. (<config> for DEBUG and
>> RELEASE).
>> but that have no effect on MSVC flags.
>> (on Unix after fixing the build type first, the CMAKE_CXX_FLAGS_<config>
>> works but not on windows!)
> 
> Ok then it may be a MSVC specific pb.
> I'm afraid I won't be able to help for that config :=(
> 
These options certainly do affect MSVC.  I suspect that your project is 
doing something funny.  Please post a "small" example that shows the 
flags are not being used.

-Bill


More information about the CMake mailing list