]> granicus.if.org Git - clang/commitdiff
[autotools->cmake] Added CMake support for the preprocessor variable CLANG_REPOSITORY...
authorMichael Gottesman <mgottesman@apple.com>
Thu, 15 Aug 2013 19:22:33 +0000 (19:22 +0000)
committerMichael Gottesman <mgottesman@apple.com>
Thu, 15 Aug 2013 19:22:33 +0000 (19:22 +0000)
This is a patch in a longer series of patches to add
capabilities/definitions that are present in the Autotools build chain
and not in the CMake build chain to the CMake build chain.

*NOTE* I am hacking on this in my free time. I will annotate each commit
with the [autotools->cmake] header.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188478 91177308-0d34-0410-b5e6-96231b3b80d8

CMakeLists.txt

index 927ed0262f12a844b8447d154c90d6cf9c314b61..222d7fd8e70d883651af0038489c49feba02e9e0 100644 (file)
@@ -90,6 +90,13 @@ if( CLANG_VENDOR )
   add_definitions( -DCLANG_VENDOR="${CLANG_VENDOR} " )
 endif()
 
+set(CLANG_REPOSITORY_STRING "" CACHE STRING
+  "Vendor-specific text for showing the repository the source is taken from.")
+
+if(CLANG_REPOSITORY_STRING)
+  add_definitions(-DCLANG_REPOSITORY_STRING="${CLANG_REPOSITORY_STRING}")
+endif()
+
 set(CLANG_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
 set(CLANG_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR})