Add LLVM to project using cmake
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I'm trying to add LLVM to a cmake project, using cygwin as a compiler. I downloaded LLVM from cygwin's installer (just installed all of the llvm related packages). The files are there, however I cannot include LLVM in my project. I tried using the official guide for 3.5.2 (the version it installed) and my CMakeLists.txt looks like cmake_minimum_required ( VERSION 3.2 ) project ( Lang ) find_package ( LLVM REQUIRED CONFIG ) message ( STATUS "Found LLVM ${LLVM_PACKAGE_VERSION}" ) message ( STATUS "Using LLVMConfig.cmake in: ${LLVM