[CMake] Re: Unable to change CMAKE_CXX_FLAGS for vc6

Andrew MacDonald macdonald.andrew at gmail.com
Wed May 9 17:27:03 EDT 2007


...and I just answered my own question. I had to set the CMAKE_C_FLAGS
variables even though the project file template appears to use CXX
variables. I assume this is because the project only uses .c files.
Sorry for the spam.

/Andrew

On 5/9/07, Andrew MacDonald <macdonald.andrew at gmail.com> wrote:
> I have been unable to change the setting of CMAKE_CXX_FLAGS added to a
> vc6 project file. The other variables such as BUILD_INCLUDES and
> EXTRA_DEFINES work properly. I've tried both of the following
>
> set(CMAKE_CXX_FLAGS "foo")
>
> set(CMAKE_CXX_FLAGS "foo" CACHE STRING "" FORCE)
>
> The latter changes the cache value but still doesn't change the value
> in the generated project file. Does anyone know how to do this
> properly?
>
> Thanks,
> Andrew
>


More information about the CMake mailing list