Skip to content
This repository has been archived by the owner on Mar 30, 2021. It is now read-only.

Commit

Permalink
Merge pull request #483 from Vodorok/disable-rev-include--gen
Browse files Browse the repository at this point in the history
Option to be able to turn off revision include generation.
  • Loading branch information
martong committed Aug 24, 2018
2 parents 4234fbb + 8490810 commit a3f59b8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/Basic/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit a3f59b8

Please sign in to comment.