https://llvm.org/bugs/show_bug.cgi?id=31104
Bug ID: 31104 Summary: Standalone LLDB build is broken because gtest is defined twice Product: Build scripts Version: trunk Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: cmake Assignee: unassignedb...@nondot.org Reporter: eugene.zele...@gmail.com CC: llvm-bugs@lists.llvm.org Classification: Unclassified I encountered next problem when tried to build standalone LLDB: CMake Error at pass2.build/lib64/cmake/llvm/AddLLVM.cmake:422 (add_library): add_library cannot create target "gtest" because an imported target with the same name already exists. Call Stack (most recent call first): pass2.build/lib64/cmake/llvm/AddLLVM.cmake:560 (llvm_add_library) llvm-svn.src/utils/unittest/CMakeLists.txt:40 (add_llvm_library) CMake Error at pass2.build/lib64/cmake/llvm/AddLLVM.cmake:531 (target_link_libraries): Cannot specify link libraries for target "gtest" which is not built by this project. Call Stack (most recent call first): pass2.build/lib64/cmake/llvm/AddLLVM.cmake:560 (llvm_add_library) llvm-svn.src/utils/unittest/CMakeLists.txt:40 (add_llvm_library) First time gtest is defined in: pass2.build/lib64/cmake/llvm/LLVMBuildTreeOnlyTargets.cmake(42): add_library(gtest STATIC IMPORTED ) -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs