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

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • viewer build
    • Standalone
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: