[LLVMbugs] [Bug 9699] New: cmake fails with error in tools/clang/CMakeLists.txt:178 (link_system_libs)

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Apr 13 09:20:29 PDT 2011


           Summary: cmake fails with error in
                    tools/clang/CMakeLists.txt:178 (link_system_libs)
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: release blocker
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: david at binachip.com
                CC: llvmbugs at cs.uiuc.edu

The following error appears while running cmake in cygwin for Visual Studio
2010 on Win64 platform. Apparently the function "link_system_libs" is not
defined anywhere.

-- Clang version: 2.9
CMake Error at tools/clang/CMakeLists.txt:178 (link_system_libs):
  Unknown CMake command "link_system_libs".
Call Stack (most recent call first):
  tools/clang/lib/Basic/CMakeLists.txt:3 (add_clang_library)

To fix this error, the following lines need to be added to

function(link_system_libs target)
  target_link_libraries(${target} ${llvm_system_libs})

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list