summaryrefslogtreecommitdiff
path: root/cmake/modules/AddLLVM.cmake
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2013-08-14 03:34:49 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2013-08-14 03:34:49 +0000
commite1bae5fb81e3dd8bcfa2982443460e2ee0f66baf (patch)
tree688f9e62513e18295969bb3c93fbed234bce2e78 /cmake/modules/AddLLVM.cmake
parente908486f5badf116c8711da76729ea2b3aa933b4 (diff)
downloadllvm-e1bae5fb81e3dd8bcfa2982443460e2ee0f66baf.tar.gz
llvm-e1bae5fb81e3dd8bcfa2982443460e2ee0f66baf.tar.bz2
llvm-e1bae5fb81e3dd8bcfa2982443460e2ee0f66baf.tar.xz
[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/modules/AddLLVM.cmake')
-rw-r--r--cmake/modules/AddLLVM.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/cmake/modules/AddLLVM.cmake b/cmake/modules/AddLLVM.cmake
index 094969c8f4..24afeea9d1 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