[PATCH] D13214: [CMake] Adjust the variables set by LLVMConfig.cmake
John Brawn via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 28 08:49:15 PDT 2015
john.brawn created this revision.
john.brawn added reviewers: chapuni, chandlerc, delcypher.
john.brawn added a subscriber: llvm-commits.
john.brawn set the repository for this revision to rL LLVM.
When using LLVMConfig.cmake from an installed toolchain in order to build a loadable pass using add_llvm_loadable_module LLVM_ENABLE_PLUGINS and LLVM_PLUGIN_EXT must be set. Also make LLVM_DEFINITIONS be set to what it actually is.
Repository:
rL LLVM
http://reviews.llvm.org/D13214
Files:
cmake/modules/LLVMConfig.cmake.in
Index: cmake/modules/LLVMConfig.cmake.in
===================================================================
--- cmake/modules/LLVMConfig.cmake.in
+++ cmake/modules/LLVMConfig.cmake.in
@@ -39,14 +39,17 @@
set(LLVM_ENABLE_PIC @LLVM_ENABLE_PIC@)
+set(LLVM_ENABLE_PLUGINS @LLVM_ENABLE_PLUGINS@)
+set(LLVM_PLUGIN_EXT @LLVM_PLUGIN_EXT@)
+
set(LLVM_ON_UNIX @LLVM_ON_UNIX@)
set(LLVM_ON_WIN32 @LLVM_ON_WIN32@)
set(LLVM_LIBDIR_SUFFIX @LLVM_LIBDIR_SUFFIX@)
set(LLVM_INCLUDE_DIRS "@LLVM_CONFIG_INCLUDE_DIRS@")
set(LLVM_LIBRARY_DIRS "@LLVM_CONFIG_LIBRARY_DIRS@")
-set(LLVM_DEFINITIONS "-D__STDC_LIMIT_MACROS" "-D__STDC_CONSTANT_MACROS")
+set(LLVM_DEFINITIONS "@LLVM_DEFINITIONS@")
set(LLVM_CMAKE_DIR "@LLVM_CONFIG_CMAKE_DIR@")
set(LLVM_TOOLS_BINARY_DIR "@LLVM_CONFIG_TOOLS_BINARY_DIR@")
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D13214.35876.patch
Type: text/x-patch
Size: 793 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150928/978b67a8/attachment.bin>
More information about the llvm-commits
mailing list