[CMake] COMPILE_FLAGS_<CONFIG>

Steven Wilson steven.wesley.wilson at gmail.com
Tue Oct 20 12:47:39 EDT 2009


I am asking why CMake doesn't support the following:

set_target_properties(${TARGET} PROPERTIES COMPILE_FLAGS_<CONFIG>
"-fmyflag")

On Tue, Oct 20, 2009 at 10:44 AM, Tyler <tyler at cryptio.net> wrote:

> Please reply to the list so others can help.
>
> On Mon, Oct 19, 2009 at 06:11:23PM -0600, Steven Wilson wrote:
> > Yes, but CMAKE_CXX_FLAGS_<CONFIG> and CMAKE_C_FLAGS_<CONFIG> are global
> in
> > scope.   I want to be able to make changes to the compilation flags at
> the
> > target level based on the current configuration.
>
> Ok; just wanted to make sure you knew about them.
>
> Can you use set_source_files_properties() or set_target_properties()
> with the COMPILE_FLAGS property?
>
> tyler
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20091020/3caaed88/attachment.htm>


More information about the CMake mailing list