diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2013-08-14 03:34:49 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2013-08-14 03:34:49 +0000 |
commit | e1bae5fb81e3dd8bcfa2982443460e2ee0f66baf (patch) | |
tree | 688f9e62513e18295969bb3c93fbed234bce2e78 /cmake | |
parent | e908486f5badf116c8711da76729ea2b3aa933b4 (diff) | |
download | external_llvm-e1bae5fb81e3dd8bcfa2982443460e2ee0f66baf.zip external_llvm-e1bae5fb81e3dd8bcfa2982443460e2ee0f66baf.tar.gz external_llvm-e1bae5fb81e3dd8bcfa2982443460e2ee0f66baf.tar.bz2 |
[CMake] add_llvm_library: Specify explicit suffix .imp to import library to avoid a warning between profile_rt-static and profile_rt-shared with lib/profile_rt.lib.
FIXME: It seems MS version of profile_rt.dll doesn't contain any export symbols.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188351 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/modules/AddLLVM.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cmake/modules/AddLLVM.cmake b/cmake/modules/AddLLVM.cmake index 094969c..24afeea 100644 --- a/cmake/modules/AddLLVM.cmake +++ b/cmake/modules/AddLLVM.cmake @@ -12,6 +12,11 @@ macro(add_llvm_library name) if( BUILD_SHARED_LIBS ) llvm_config( ${name} ${LLVM_LINK_COMPONENTS} ) + if (MSVC) + set_target_properties(${name} + PROPERTIES + IMPORT_SUFFIX ".imp") + endif () endif() # Ensure that the system libraries always comes last on the |