r221346 - Support LLVM_BUILD_STATIC.

Rafael Espindola rafael.espindola at gmail.com
Wed Nov 5 06:04:26 PST 2014


Author: rafael
Date: Wed Nov  5 08:04:25 2014
New Revision: 221346

URL: http://llvm.org/viewvc/llvm-project?rev=221346&view=rev
Log:
Support LLVM_BUILD_STATIC.

Modified:
    cfe/trunk/tools/c-arcmt-test/CMakeLists.txt
    cfe/trunk/tools/c-index-test/CMakeLists.txt

Modified: cfe/trunk/tools/c-arcmt-test/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/c-arcmt-test/CMakeLists.txt?rev=221346&r1=221345&r2=221346&view=diff
==============================================================================
--- cfe/trunk/tools/c-arcmt-test/CMakeLists.txt (original)
+++ cfe/trunk/tools/c-arcmt-test/CMakeLists.txt Wed Nov  5 08:04:25 2014
@@ -2,9 +2,15 @@ add_clang_executable(c-arcmt-test
   c-arcmt-test.c
   )
 
-target_link_libraries(c-arcmt-test
-  libclang
-  )
+if (LLVM_BUILD_STATIC)
+  target_link_libraries(c-arcmt-test
+    libclang_static
+    )
+else()
+  target_link_libraries(c-arcmt-test
+    libclang
+    )
+endif()
 
 set_target_properties(c-arcmt-test
   PROPERTIES

Modified: cfe/trunk/tools/c-index-test/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/c-index-test/CMakeLists.txt?rev=221346&r1=221345&r2=221346&view=diff
==============================================================================
--- cfe/trunk/tools/c-index-test/CMakeLists.txt (original)
+++ cfe/trunk/tools/c-index-test/CMakeLists.txt Wed Nov  5 08:04:25 2014
@@ -9,9 +9,15 @@ if(NOT MSVC)
     )
 endif()
 
-target_link_libraries(c-index-test
-  libclang
+if (LLVM_BUILD_STATIC)
+  target_link_libraries(c-index-test
+    libclang_static
   )
+else()
+  target_link_libraries(c-index-test
+    libclang
+  )
+endif()
 
 set_target_properties(c-index-test
   PROPERTIES





More information about the cfe-commits mailing list