diff options
author | Oscar Fuentes <ofv@wanadoo.es> | 2010-12-22 08:30:17 +0000 |
---|---|---|
committer | Oscar Fuentes <ofv@wanadoo.es> | 2010-12-22 08:30:17 +0000 |
commit | 711042839cab1948366dfc69d1b866cc1a103444 (patch) | |
tree | f1efe6cf46566d047263d785bd23cb7b55403971 /cmake | |
parent | cbf68dfbc0b36de8ef20bb42ce0c7d75cb132fc7 (diff) |
Fixes file extension for loadable modules on OS X.
Patch by Wesley Peck!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122395 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rwxr-xr-x | cmake/modules/AddLLVM.cmake | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/cmake/modules/AddLLVM.cmake b/cmake/modules/AddLLVM.cmake index d03b3e04b0..fdf1df0c67 100755 --- a/cmake/modules/AddLLVM.cmake +++ b/cmake/modules/AddLLVM.cmake @@ -36,7 +36,13 @@ ${name} ignored.") add_custom_target(${name}) else() llvm_process_sources( ALL_FILES ${ARGN} ) - add_library( ${name} MODULE ${ALL_FILES} ) + if (MODULE) + set(libkind MODULE) + else() + set(libkind SHARED) + endif() + + add_library( ${name} ${libkind} ${ALL_FILES} ) set_target_properties( ${name} PROPERTIES PREFIX "" ) if (APPLE) |