[llvm-commits] [llvm] r139106 - /llvm/trunk/docs/CMake.html

Chandler Carruth chandlerc at gmail.com
Sun Sep 4 16:24:14 PDT 2011


Author: chandlerc
Date: Sun Sep  4 18:24:13 2011
New Revision: 139106

URL: http://llvm.org/viewvc/llvm-project?rev=139106&view=rev
Log:
Update the CMake documentation to the correct variables.

Patch by arrowdodger!

Modified:
    llvm/trunk/docs/CMake.html

Modified: llvm/trunk/docs/CMake.html
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/CMake.html?rev=139106&r1=139105&r2=139106&view=diff
==============================================================================
--- llvm/trunk/docs/CMake.html (original)
+++ llvm/trunk/docs/CMake.html Sun Sep  4 18:24:13 2011
@@ -423,8 +423,9 @@
     set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${LLVM_ROOT}/share/llvm/cmake")
     include(LLVMConfig)
     <b># Now set the header and library paths:</b>
-    include_directories( ${LLVM_ROOT}/include )
-    link_directories( ${LLVM_ROOT}/lib )
+    include_directories( ${LLVM_INCLUDE_DIRS} )
+    link_directories( ${LLVM_LIBRARY_DIRS} )
+    add_definitions( ${LLVM_DEFINITIONS} )
     <b># Let's suppose we want to build a JIT compiler with support for
     # binary code (no interpreter):</b>
     llvm_map_components_to_libraries(REQ_LLVM_LIBRARIES jit native)





More information about the llvm-commits mailing list