Uploaded image for project: 'Open Development'
  1. Open Development
  2. OPEN-36

error "COPY_IF_DIFFERENT Macro invoked with incorrect arguments" due to emty (zero-length) strings in CMake variables that should not be empty

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Component/s: viewer build
    • Labels:
    • Environment:
      Standalone
    • Acceptance Criteria:
      Copy3rdPartyLibs.cmake should error out with a meaningful message when one of the arguments it'd pass to copy_if_different would be empty.

      Description

      To reproduce:

      autobuild configure -c OpenSourceStandAloneRelWithDebInfo

      Expected

      Configuration succeeds with

      [...]
      -- Build files have been written to: [...]/build-linux-i686
      

      Observed

      Configuration fails with

      [...]
      CMake Error at cmake/Copy3rdPartyLibs.cmake:323 (copy_if_different):
        COPY_IF_DIFFERENT Macro invoked with incorrect arguments for macro named:
        COPY_IF_DIFFERENT
      Call Stack (most recent call first):
        llcommon/CMakeLists.txt:14 (include)
       
      [...]
      -- Configuring incomplete, errors occurred!
      ERROR: default configuration returned 1
      For more information: try re-running your command with --verbose or --debug
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                boroondas.gupte Boroondas Gupte
                Reporter:
                boroondas.gupte Boroondas Gupte
              • Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: