[PATCH] CMake: support the LLVM_INSTALL_TOOLCHAIN_ONLY flag

Hans Wennborg hans at chromium.org
Fri Aug 23 16:33:37 PDT 2013


  > I see the libclang headers go in regardless, but make sure that libclang.so does too?

  It does go in, that's what the STREQUAL check on line 240 does.


================
Comment at: CMakeLists.txt:240
@@ -239,5 +239,3 @@
 
-  install(TARGETS ${name}
-    LIBRARY DESTINATION lib${LLVM_LIBDIR_SUFFIX}
-    ARCHIVE DESTINATION lib${LLVM_LIBDIR_SUFFIX}
-    RUNTIME DESTINATION bin)
+  if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY OR ${name} STREQUAL "libclang")
+    install(TARGETS ${name}
----------------
Chandler Carruth wrote:
> What sets this for the standalone cmake build.
It doesn't; we should expose it as an option for the standalone build. I'll do that when committing.


http://llvm-reviews.chandlerc.com/D1498



More information about the cfe-commits mailing list