[PATCH] CMake: support the LLVM_INSTALL_TOOLCHAIN_ONLY flag

Chandler Carruth chandlerc at gmail.com
Fri Aug 23 16:23:25 PDT 2013


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


================
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}
----------------
What sets this for the standalone cmake build.


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



More information about the cfe-commits mailing list