[compiler-rt] r254658 - [CMake] set_target_properties doesn't append link flags

Chris Bieneman via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 3 14:52:22 PST 2015


Author: cbieneman
Date: Thu Dec  3 16:52:22 2015
New Revision: 254658

URL: http://llvm.org/viewvc/llvm-project?rev=254658&view=rev
Log:
[CMake] set_target_properties doesn't append link flags

This fixes a bug I introduced in r254643.

Modified:
    compiler-rt/trunk/cmake/Modules/AddCompilerRT.cmake

Modified: compiler-rt/trunk/cmake/Modules/AddCompilerRT.cmake
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/cmake/Modules/AddCompilerRT.cmake?rev=254658&r1=254657&r2=254658&view=diff
==============================================================================
--- compiler-rt/trunk/cmake/Modules/AddCompilerRT.cmake (original)
+++ compiler-rt/trunk/cmake/Modules/AddCompilerRT.cmake Thu Dec  3 16:52:22 2015
@@ -325,7 +325,7 @@ function(rt_externalize_debuginfo name)
       OR CMAKE_CXX_FLAGS_${uppercase_CMAKE_BUILD_TYPE} MATCHES "-flto")
 
       set(lto_object ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/${name}-lto.o)
-      set_target_properties(${name} PROPERTIES
+      set_property(TARGET ${name} APPEND_STRING PROPERTY
         LINK_FLAGS "-Wl,-object_path_lto -Wl,${lto_object}")
     endif()
     add_custom_command(TARGET ${name} POST_BUILD




More information about the llvm-commits mailing list