From: Michael Gottesman Date: Thu, 15 Aug 2013 19:22:33 +0000 (+0000) Subject: [autotools->cmake] Added CMake support for the preprocessor variable CLANG_REPOSITORY... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a8c0e4f143954c65c19aa9a0d12b35c83f370909;p=clang [autotools->cmake] Added CMake support for the preprocessor variable CLANG_REPOSITORY_STRING. 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 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 927ed0262f..222d7fd8e7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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})