r188478 - [autotools->cmake] Added CMake support for the preprocessor variable CLANG_REPOSITORY_STRING.
Michael Gottesman
mgottesman at apple.com
Thu Aug 15 12:22:33 PDT 2013
Author: mgottesman
Date: Thu Aug 15 14:22:33 2013
New Revision: 188478
URL: http://llvm.org/viewvc/llvm-project?rev=188478&view=rev
Log:
[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.
Modified:
cfe/trunk/CMakeLists.txt
Modified: cfe/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/CMakeLists.txt?rev=188478&r1=188477&r2=188478&view=diff
==============================================================================
--- cfe/trunk/CMakeLists.txt (original)
+++ cfe/trunk/CMakeLists.txt Thu Aug 15 14:22:33 2013
@@ -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})
More information about the cfe-commits
mailing list