Skip to content
Snippets Groups Projects
Commit 30395ea6 authored by Chris Bieneman's avatar Chris Bieneman
Browse files

[CMake] Properly respect the CLANG_APPEND_VC_REV option

Only set -DSVN_REVISION if CLANG_APPEND_VC_REV=On

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@258143 91177308-0d34-0410-b5e6-96231b3b80d8
parent 77ca6878
No related branches found
No related tags found
No related merge requests found
......@@ -216,14 +216,15 @@ endif()
option(CLANG_APPEND_VC_REV
"Append the version control system revision id to clang version spew" OFF)
if(CLANG_APPEND_VC_REV)
if(NOT SVN_REVISION)
# This macro will set SVN_REVISION in the parent scope
add_version_info_from_vcs(VERSION_VAR)
endif()
if(NOT SVN_REVISION)
# This macro will set SVN_REVISION in the parent scope
add_version_info_from_vcs(VERSION_VAR)
endif()
if(SVN_REVISION)
add_definitions(-DSVN_REVISION="${SVN_REVISION}")
if(SVN_REVISION)
add_definitions(-DSVN_REVISION="${SVN_REVISION}")
endif()
endif()
set(CLANG_VENDOR_UTI "org.llvm.clang" CACHE STRING
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment