CMake - CMake Digest, Vol 160, Issue 74

Send CMake mailing list submissions to cmake@cmake.org To subscribe or unsubscribe via the World Wide Web, visit https://cmake.org or, via email, send a message with subject or body 'help' to cmake-request@cmake.org You can reach the person managing the list at cmake-owner@cmake.org When replying, please edit your Subject line so it is more specific than "Re: Contents of CMake digest..." Today's Topics: 1. Re: Inherited Build Properties: Is this the intent of add_library Interface Libraries? (Brian Davis) ---------------------------------------------------------------------- Message: 1 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? Message-ID: 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): https://cmake.org 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 information." Then searching https://cmake.org grep'in for IMPORTED_ or INTERFACE_ yields the full white list. What I have found to be: IMPORTED_CONFIGURATIONS IMPORTED_IMPLIB_ IMPORTED_IMPLIB IMPORTED_LIBNAME_ IMPORTED_LIBNAME IMPORTED_LINK_DEPENDENT_LIBRARIES_ IMPORTED_LINK_DEPENDENT_LIBRARIES IMPORTED_LINK_INTERFACE_LANGUAGES_ IMPORTED_LINK_INTERFACE_LANGUAGES IMPORTED_LINK_INTERFACE_LIBRARIES_ IMPORTED_LINK_INTERFACE_LIBRARIES IMPORTED_LINK_INTERFACE_MULTIPLICITY_ IMPORTED_LINK_INTERFACE_MULTIPLICITY IMPORTED_LOCATION_ IMPORTED_LOCATION IMPORTED_NO_SONAME_ IMPORTED_NO_SONAME IMPORTED_OBJECTS_ IMPORTED_OBJECTS IMPORTED IMPORTED_SONAME_ IMPORTED_SONAME INTERFACE_AUTOUIC_OPTIONS INTERFACE_COMPILE_DEFINITIONS INTERFACE_COMPILE_FEATURES INTERFACE_COMPILE_OPTIONS INTERFACE_INCLUDE_DIRECTORIES INTERFACE_LINK_LIBRARIES INTERFACE_POSITION_INDEPENDENT_CODE INTERFACE_SOURCES INTERFACE_SYSTEM_INCLUDE_DIRECTORIES 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: https://cmake.org 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. https://cmake.org Possibly: 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... URL: