diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index bd8e9d75..024d8a50 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -185,6 +185,11 @@ if (NOT EXISTS "${LLVM_AS}") message(FATAL_ERROR "Failed to find llvm-as at \"${LLVM_AS}\"") endif() +# Check for dynamic linking +if (LLVM_LINK_LLVM_DYLIB) + set(USE_LLVM_SHARED USE_SHARED) +endif() + ################################################################################ # C++ version ################################################################################ |