Skip to content

Commit

Permalink
[CMake] add_llvm_library: Specify explicit suffix .imp to import libr…
Browse files Browse the repository at this point in the history
…ary 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
  • Loading branch information
chapuni committed Aug 14, 2013
1 parent e908486 commit e1bae5f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmake/modules/AddLLVM.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e1bae5f

Please sign in to comment.