set(LLVM_LIBDIR_SUFFIX @LLVM_LIBDIR_SUFFIX@)
+set(LLVM_INCLUDE_DIRS "@LLVM_CONFIG_INCLUDE_DIRS@")
+set(LLVM_LIBRARY_DIRS "@LLVM_CONFIG_LIBRARY_DIRS@")
+
+# These variables are duplicated, but they must match the LLVM variables of the
+# same name. The variables ending in "S" could some day become lists, and are
+# preserved for convention and compatibility.
set(LLVM_INCLUDE_DIR "@LLVM_CONFIG_INCLUDE_DIRS@")
set(LLVM_LIBRARY_DIR "@LLVM_CONFIG_LIBRARY_DIRS@")
+
set(LLVM_DEFINITIONS "@LLVM_DEFINITIONS@")
set(LLVM_CMAKE_DIR "@LLVM_CONFIG_CMAKE_DIR@")
set(LLVM_BINARY_DIR "@LLVM_CONFIG_BINARY_DIR@")
# you will need to enable C++11 support
# for your compiler.
- include_directories(${LLVM_INCLUDE_DIR})
+ include_directories(${LLVM_INCLUDE_DIRS})
add_definitions(${LLVM_DEFINITIONS})
# Now build our tools
This is set to ON if LLVM was built with run time type information (RTTI),
otherwise OFF.
-``LLVM_INCLUDE_DIR``
- Path to the root directory containing LLVM header files.
+``LLVM_INCLUDE_DIRS``
+ A list of include paths to directories containing LLVM header files.
``LLVM_PACKAGE_VERSION``
The LLVM version. This string can be used with CMake conditionals, e.g., ``if
find_package(LLVM REQUIRED CONFIG)
add_definitions(${LLVM_DEFINITIONS})
- include_directories(${LLVM_INCLUDE_DIR})
+ include_directories(${LLVM_INCLUDE_DIRS})
add_subdirectory(<pass name>)