[CMake] set_directory_properties() Isn't

Stewart, Robert Robert.Stewart at sig.com
Fri Aug 30 18:48:39 EDT 2013


Fraser Hutchison wrote:
> On 30/08/2013 22:30, Stewart, Robert wrote:
> > I'm effectively doing the following, with CMake 2.8, but it
> > doesn't work.  What am I missing?
> >
> > get_directory_property(before DEFINITIONS)
> > set_directory_properties(PROPERTIES DEFINITIONS "-DFOO")
> > get_directory_property(after DEFINITIONS)
> >
> > before and after are the same, and before isn't -DFOO.
>
> The DEFINITIONS directory property is read-only.
> COMPILE_DEFINITIONS or the configuration-specific versions
> are mutable I believe.

Thanks! That worked.

Why doesn't CMake generate an error when one tries to set a
read-only property!  Indeed, the error message should say
which property to set.

_____
Rob Stewart
Software Engineer
Dev Tools & Components
Susquehanna International Group, LLP

________________________________

IMPORTANT: The information contained in this email and/or its attachments is confidential. If you are not the intended recipient, please notify the sender immediately by reply and immediately delete this message and all its attachments. Any review, use, reproduction, disclosure or dissemination of this message or any attachment by an unintended recipient is strictly prohibited. Neither this message nor any attachment is intended as or should be construed as an offer, solicitation or recommendation to buy or sell any security or other financial instrument. Neither the sender, his or her employer nor any of their respective affiliates makes any warranties as to the completeness or accuracy of any of the information contained herein or that this message or any of its attachments is free of viruses.


More information about the CMake mailing list