[Lldb-commits] [lldb] r286528 - [CMake] Fixing CMake to append source properties instead of overwrite them.

Chris Bieneman via lldb-commits lldb-commits at lists.llvm.org
Thu Nov 10 15:56:32 PST 2016


Author: cbieneman
Date: Thu Nov 10 17:56:32 2016
New Revision: 286528

URL: http://llvm.org/viewvc/llvm-project?rev=286528&view=rev
Log:
[CMake] Fixing CMake to append source properties instead of overwrite them.

This is a small fix to the version output.

Modified:
    lldb/trunk/source/CMakeLists.txt

Modified: lldb/trunk/source/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/CMakeLists.txt?rev=286528&r1=286527&r2=286528&view=diff
==============================================================================
--- lldb/trunk/source/CMakeLists.txt (original)
+++ lldb/trunk/source/CMakeLists.txt Thu Nov 10 17:56:32 2016
@@ -55,8 +55,8 @@ if(DEFINED lldb_vc)
                HEADER_FILE_ONLY TRUE)
 
   # Tell Version.cpp that it needs to build with -DHAVE_SVN_VERSION_INC.
-  set_source_files_properties(lldb.cpp
-    PROPERTIES COMPILE_DEFINITIONS "HAVE_SVN_VERSION_INC")
+  set_property(SOURCE lldb.cpp APPEND PROPERTY 
+               COMPILE_DEFINITIONS "HAVE_SVN_VERSION_INC")
   list(APPEND lldbBase_SOURCES ${version_inc})
 endif()
 
@@ -79,12 +79,12 @@ if(APPLE)
                HEADER_FILE_ONLY TRUE)
 
   # Tell Version.cpp that it needs to build with -DHAVE_SVN_VERSION_INC.
-  set_source_files_properties(lldb.cpp
-    PROPERTIES COMPILE_DEFINITIONS "HAVE_APPLE_VERSION_INC")
+  set_property(SOURCE lldb.cpp APPEND PROPERTY 
+               COMPILE_DEFINITIONS "HAVE_APPLE_VERSION_INC")
   list(APPEND lldbBase_SOURCES ${apple_version_inc})
 elseif(LLDB_VERSION_STRING)
-  set_source_files_properties(lldb.cpp
-    PROPERTIES COMPILE_DEFINITIONS "LLDB_VERSION_STRING=${LLDB_VERSION_STRING}")
+  set_property(SOURCE lldb.cpp APPEND PROPERTY
+               COMPILE_DEFINITIONS "LLDB_VERSION_STRING=${LLDB_VERSION_STRING}")
 endif()
 
 add_lldb_library(lldbBase




More information about the lldb-commits mailing list