diff options
author | Michael Gottesman <mgottesman@apple.com> | 2013-08-15 19:22:33 +0000 |
---|---|---|
committer | Michael Gottesman <mgottesman@apple.com> | 2013-08-15 19:22:33 +0000 |
commit | 46d67de84dcfb91bd7784252516b2e39a9129f85 (patch) | |
tree | f5b72b4414c50f93fd54dacc9a41839f66f9baf7 /clang/CMakeLists.txt | |
parent | 8548725f290ddae3feef2a15fc672010087c939b (diff) | |
download | llvm-46d67de84dcfb91bd7784252516b2e39a9129f85.zip llvm-46d67de84dcfb91bd7784252516b2e39a9129f85.tar.gz llvm-46d67de84dcfb91bd7784252516b2e39a9129f85.tar.bz2 |
[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.
llvm-svn: 188478
Diffstat (limited to 'clang/CMakeLists.txt')
-rw-r--r-- | clang/CMakeLists.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/CMakeLists.txt b/clang/CMakeLists.txt index 927ed02..222d7fd 100644 --- a/clang/CMakeLists.txt +++ b/clang/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}) |