summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-config/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/tools/llvm-config/CMakeLists.txt')
-rw-r--r--llvm/tools/llvm-config/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/tools/llvm-config/CMakeLists.txt b/llvm/tools/llvm-config/CMakeLists.txt
index d1f87064962..83794bb3fdd 100644
--- a/llvm/tools/llvm-config/CMakeLists.txt
+++ b/llvm/tools/llvm-config/CMakeLists.txt
@@ -31,6 +31,11 @@ set(LLVM_HAS_RTTI ${LLVM_CONFIG_HAS_RTTI})
set(LLVM_LDFLAGS "${CMAKE_CXX_LINK_FLAGS}")
set(LLVM_BUILDMODE ${CMAKE_BUILD_TYPE})
set(LLVM_SYSTEM_LIBS ${SYSTEM_LIBS})
+if(BUILD_SHARED_LIBS)
+ set(LLVM_ENABLE_SHARED ON)
+else()
+ set(LLVM_ENABLE_SHARED OFF)
+endif()
string(REPLACE ";" " " LLVM_TARGETS_BUILT "${LLVM_TARGETS_TO_BUILD}")
configure_file(${BUILDVARIABLES_SRCPATH} ${BUILDVARIABLES_OBJPATH} @ONLY)
OpenPOWER on IntegriCloud