[llvm-dev] CMake error due to file addition

rollrat via llvm-dev
2018-03-17T02:33:19Z

Hi llvm develop-team.

I am using clang/llvm6.0.0 version for univ lab project.I have some annoying
problem using CMake, so I ask for help. I added the following file to add some
features, and modified cmake, but I got a link error.

--------------------------------------
lib/Transforms/Utils/Dependency.cpp
include/Transforms/Utils/Dependency.h

lib/Transforms/Utils/CMakeLists.txt
add_llvm_library(LLVMTransformUtils
    + Dependency.cpp
  ...
  )
--------------------------------------

Link error project and link error target project list is as follows.

--------------------------------------
Link error:
	llc, lli, … (more 13 projects)
Link error target project:
	LLVMObjCARCOpts, LLVMipo, LLVMLinker, LLVMVectorize, LLVMInstrumentation
    (the count of projects: 5)
--------------------------------------

I am working in visual studio to fix the link manually. I get the same error on
linux also. I got this error and tried to make some modifications to
llvm-core/CMakeLists.txt, but the error was not resolved.

If you have a clear answer to this, please answer this.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.llvm.org/pipermail/llvm-dev/attachments/20180317/c1d2437f/attachment.html>