From 84908103136f53edf8875df6399451eaaeb6f1d2 Mon Sep 17 00:00:00 2001 From: Gabor Kutas Date: Thu, 23 Aug 2018 15:32:46 +0200 Subject: [PATCH] Option to be able to turn off revision include generation. --- lib/Basic/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/Basic/CMakeLists.txt b/lib/Basic/CMakeLists.txt index d0c9b902f67e..944b58563543 100644 --- a/lib/Basic/CMakeLists.txt +++ b/lib/Basic/CMakeLists.txt @@ -11,8 +11,11 @@ find_first_existing_vc_file(clang_vc "${CLANG_SOURCE_DIR}") set(version_inc "${CMAKE_CURRENT_BINARY_DIR}/SVNVersion.inc") set(get_svn_script "${LLVM_CMAKE_PATH}/GetSVN.cmake") +if(DEFINED NO_REV_GEN) + message(STATUS "No revision include generation ${NO_REV_GEN}") +endif() -if(DEFINED llvm_vc AND DEFINED clang_vc) +if(NOT DEFINED NO_REV_GEN AND DEFINED llvm_vc AND DEFINED clang_vc) # Create custom target to generate the VC revision include. add_custom_command(OUTPUT "${version_inc}" DEPENDS "${llvm_vc}" "${clang_vc}" "${get_svn_script}"