Uploaded image for project: 'Core ReactOS'
  1. Core ReactOS
  2. CORE-12206

CMake bug with add_library(<target> INTERFACE)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Won't Fix
    • Fix Version/s: None
    • Component/s: Build System
    • Labels:
      None
    • Module:
    • Guilty Revision:
      73,024

      Description

      The usage of add_library(<target> INTERFACE) as done in r73024 triggers a bug in CMake 3.2.1 (from RosBE 2.1.3) that manifests as:

      1>  CMake Error at sdk/cmake/CMakeMacros.cmake:499 (get_target_property):
      1>    INTERFACE_LIBRARY targets may only have whitelisted properties.  The
      1>    property "EXCLUDE_FROM_ALL" is not allowed.
      1>  Call Stack (most recent call first):
      1>    sdk/lib/conutils/CMakeLists.txt:34 (add_library)
      1>  
      1>  
      1>  -- Configuring incomplete, errors occurred!

      when we configure a build with the USE_FOLDER_STRUCTURE setting enabled, as it is currently the case for VSSolutions.
      In r73027 I have commited a workaround copied on http://stackoverflow.com/questions/24926868/cmake-3-0-add-library-of-type-interface-breaks-get-target-property .

        Attachments

          Activity

            People

            • Assignee:
              bug zilla Bug Zilla
              Reporter:
              hbelusca hbelusca
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: