[CMake] Turning off extra Visual Studio options

Tyler Roscoe tyler at cryptio.net
Fri Oct 16 15:50:04 EDT 2009


On Fri, Oct 16, 2009 at 12:16:12PM -0600, Steven Wilson wrote:
> Is there a way to turn off all the extra options that CMake tries to append
> to compiler flags, linker flags, etc for the Visual Studio generators?   I
> have a project that I want to explicity control every option for some of my
> exes/libs.

I don't know of an easy way.

I guess the best way would be to just override all the appropriate flags
(CMAKE_CXX_FLAGS and friends) for any of your buildables that need to
override them.

You could also modify the Platform/ files for Windows in your CMake
installation.

tyler


More information about the CMake mailing list