diff options
author | Sergio Martins <smartins@kde.org> | 2017-07-08 14:01:34 +0100 |
---|---|---|
committer | Sergio Martins <smartins@kde.org> | 2017-07-08 14:01:34 +0100 |
commit | 80c2eeda49b03d389100ba0d9bdc37fc40b33eb5 (patch) | |
tree | 94c02ae2b182f5530b181a384ab51d7d6e9d2a6a | |
parent | 58f75e25fcd2f608eea1d31e98a7669258c6b612 (diff) |
Fix clazy-standalone build when using static llvm
only link to llvm after linking to ClangLazy.so so the static libraries
aren't discarded
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 8627b69d..e9f240c1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -234,7 +234,7 @@ endif() # Build clazy-standalone add_executable(clazy-standalone ${CLAZY_STANDALONE_SRCS}) -link_to_llvm(clazy-standalone "${CLAZY_STANDALONE_LLVM_LIBS}") + if (MSVC) # On MSVC clang-standalone crashes with a meaningless backtrace if linked to ClangLazy.dll target_link_libraries(clazy-standalone clangFrontend) @@ -242,4 +242,6 @@ else() target_link_libraries(clazy-standalone ClangLazy) endif() +link_to_llvm(clazy-standalone "${CLAZY_STANDALONE_LLVM_LIBS}") + install(TARGETS clazy-standalone DESTINATION bin PERMISSIONS OWNER_WRITE OWNER_EXECUTE OWNER_READ GROUP_EXECUTE GROUP_READ WORLD_READ WORLD_EXECUTE) |