[CMake] Re: rc compile options in visual studio

Jon W knowdat at gmail.com
Thu Jul 19 16:01:37 EDT 2007


> > When using visual studio, the resource compile options are updated
> > with the cxx preprocessor definitions and the cxx include paths.
> >
> > How can I remove all of the cxx preprocessor/include definitions and
> > redefine the options?  I haven't had any luck trying to reset the
> > options such as:
> >
> > set(CMAKE_RC_FLAGS "" CACHE STRING "Resetting" FORCE)
> > set(CMAKE_RC_SOURCE_FILE_EXTENSIONS "rc rc2" CACHE STRING "Resetting" FORCE)
> > set(CMAKE_RC_COMPILE_OBJECT "<CMAKE_RC_COMPILER> <CMAKE_RC_FLAGS>
> > /fo<OBJECT> <SOURCE>" CACHE STRING "Resetting the rc options." FORCE)
>
> Is it possible to reset the rc compiler options?  This is currently
> stopping me from being able to compile, as the .cpp files need one set
> of include paths, and the rc files need another.  When the include
> paths are combined the .cpp files compile with errors, so I really
> need to be able to specify separate options and include paths.
>
> Thank you,
> Jon
>

Would somebody please clarify if it is possible to clear the rc
compiler options and include paths?

Thank you,
Jon


More information about the CMake mailing list