[llvm] r201318 - [CMake] Move the target property PREFIX from add_llvm_loadable_module() to llvm_add_library().

NAKAMURA Takumi geek4civic at gmail.com
Thu Feb 13 03:19:21 PST 2014


Author: chapuni
Date: Thu Feb 13 05:19:21 2014
New Revision: 201318

URL: http://llvm.org/viewvc/llvm-project?rev=201318&view=rev
Log:
[CMake] Move the target property PREFIX from add_llvm_loadable_module() to llvm_add_library().

Modified:
    llvm/trunk/cmake/modules/AddLLVM.cmake

Modified: llvm/trunk/cmake/modules/AddLLVM.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/AddLLVM.cmake?rev=201318&r1=201317&r2=201318&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/AddLLVM.cmake (original)
+++ llvm/trunk/cmake/modules/AddLLVM.cmake Thu Feb 13 05:19:21 2014
@@ -221,7 +221,10 @@ function(llvm_add_library name)
   endif()
 
   if(ARG_MODULE)
-    set_property(TARGET ${name} PROPERTY SUFFIX ${LLVM_PLUGIN_EXT})
+    set_target_properties(${name} PROPERTIES
+      PREFIX ""
+      SUFFIX ${LLVM_PLUGIN_EXT}
+      )
   endif()
 
   if(ARG_SHARED)
@@ -285,7 +288,6 @@ ${name} ignored.")
     add_custom_target(${name})
   else()
     llvm_add_library(${name} MODULE ${ARGN})
-    set_target_properties( ${name} PROPERTIES PREFIX "" )
 
     if( EXCLUDE_FROM_ALL )
       set_target_properties( ${name} PROPERTIES EXCLUDE_FROM_ALL ON)





More information about the llvm-commits mailing list