[llvm-bugs] [Bug 33408] New: cmake error: cmake/modules/AddLLVM.cmake "Unknown arguments specified"

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Jun 11 16:20:22 PDT 2017


https://bugs.llvm.org/show_bug.cgi?id=33408

            Bug ID: 33408
           Summary: cmake error: cmake/modules/AddLLVM.cmake "Unknown
                    arguments specified"
           Product: Build scripts
           Version: trunk
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: release blocker
          Priority: P
         Component: cmake
          Assignee: unassignedbugs at nondot.org
          Reporter: tal.lancaster at gmail.com
                CC: llvm-bugs at lists.llvm.org

-- cmake version: 3.8.2

On Jun 10, I updated my trunk and am getting the following error messages from
cmake:

-- Performing Test COMPILER_RT_TARGET_HAS_ATOMICS - Success
CMake Warning (dev) at cmake/modules/AddLLVM.cmake:589 (if):
  Policy CMP0057 is not set: Support new IN_LIST if() operator.  Run "cmake
  --help-policy CMP0057" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.

  IN_LIST will be interpreted as an operator when the policy is set to NEW.
  Since the policy is not set the OLD behavior will be used.
Call Stack (most recent call first):
  tools/lto/CMakeLists.txt:19 (add_llvm_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Error at cmake/modules/AddLLVM.cmake:589 (if):
  if given arguments:

    "LTO" "IN_LIST" "LLVM_DISTRIBUTION_COMPONENTS" "OR" "NOT"
"LLVM_DISTRIBUTION_COMPONENTS"

  Unknown arguments specified
Call Stack (most recent call first):
  tools/lto/CMakeLists.txt:19 (add_llvm_library)

I added the following to cmake/modules/AddLLVM.cmake and cmake will now
complete:

if(POLICY CMP0057)
  cmake_policy(SET CMP0057 NEW)
endif()

My cmake commandline looks something like:

cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_LTO=On

My last update to the trunk was a few months ago and cmake ran successfully,
then.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170611/6e097bd4/attachment.html>


More information about the llvm-bugs mailing list