Send CMake mailing list submissions to
To subscribe or unsubscribe via the World Wide Web, visit
or, via email, send a message with subject or body 'help' to
You can reach the person managing the list at
When replying, please edit your Subject line so it is more specific
than "Re: Contents of CMake digest..."
1. Re: Inherited Build Properties: Is this the intent of
add_library Interface Libraries? (Brian Davis)
Date: Sat, 26 Aug 2017 11:21:28 -0500
From: Brian Davis
To: cmake Mailing List
Subject: Re: [CMake] Inherited Build Properties: Is this the intent of
add_library Interface Libraries?
Content-Type: text/plain; charset="utf-8"
The answer to what parameters can be specified the "whitelist" as it is
refereed to is documented (thanks to Raul's help):
with these key bits:
"Details about the imported library are specified by setting properties
whose names begin in IMPORTED_ and INTERFACE_. The most important such
property is IMPORTED_LOCATION
(and its per-configuration variant IMPORTED_LOCATION_)
which specifies the location of the main library file on disk. See
documentation of the IMPORTED_* and INTERFACE_* properties for more
grep'in for IMPORTED_ or INTERFACE_ yields the full white list. What I
have found to be:
Read -> as maps to and X as nothing, zip, zilch, nadahey, bubkis, etc. So:
SUFFIX to -> X
INSTALL_RPATH -> X
LINK_FLAGS -> X
I am sure this is useful for some use case I an quite baffled as to what it
is and I have request clarification from devs at:
I clearly don't get something here. I am interested to figure out what it
is designed for.
I have also asked that the error:
CMake Error at CMakeLists.txt:45 (set_target_properties):
INTERFACE_LIBRARY targets may only have whitelisted properties. The
property "SUFFIX" is not allowed.
provide better direction to user.
e << "INTERFACE_LIBRARY targets may only have properties beginning with
INTERFACE_* or IMPORTED_*. See cmake-properties for more information."
"The property \""
<< prop << "\" is not allowed.";
-------------- next part --------------
An HTML attachment was scrubbed...