From: NAKAMURA Takumi Date: Wed, 14 Aug 2013 03:34:49 +0000 (+0000) Subject: [CMake] add_llvm_library: Specify explicit suffix .imp to import library to avoid... X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e1bae5fb81e3dd8bcfa2982443460e2ee0f66baf;p=oota-llvm.git [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 --- diff --git a/cmake/modules/AddLLVM.cmake b/cmake/modules/AddLLVM.cmake index 094969c8f4f..24afeea9d18 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