forked from OSchip/llvm-project
[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
This commit is contained in:
parent
8548725f29
commit
46d67de84d
|
@ -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})
|
||||
|
||||
|
|
Loading…
Reference in New Issue