Skip to content

Instantly share code, notes, and snippets.

@chapuni
Created December 29, 2013 16:12
Show Gist options
  • Save chapuni/8171944 to your computer and use it in GitHub Desktop.
Save chapuni/8171944 to your computer and use it in GitHub Desktop.
Fix broken cmake build
--- a/llvm/cmake/modules/AddLLVM.cmake
+++ b/llvm/cmake/modules/AddLLVM.cmake
@@ -134,13 +134,13 @@ ${name} ignored.")
set(libkind SHARED)
endif()
+ add_library( ${name} ${libkind} ${ALL_FILES} )
+ set_target_properties( ${name} PROPERTIES PREFIX "" )
+
if (LLVM_EXPORTED_SYMBOL_FILE)
add_llvm_symbol_exports( ${name} ${LLVM_EXPORTED_SYMBOL_FILE} )
endif(LLVM_EXPORTED_SYMBOL_FILE)
- add_library( ${name} ${libkind} ${ALL_FILES} )
- set_target_properties( ${name} PROPERTIES PREFIX "" )
-
llvm_config( ${name} ${LLVM_LINK_COMPONENTS} )
link_system_libs( ${name} )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment