[BOLT][CMake] Add dependency on llvm_vcsrevision_h
authorAmir Ayupov <aaupov@fb.com>
Wed, 1 Feb 2023 20:35:46 +0000 (12:35 -0800)
committerAmir Ayupov <aaupov@fb.com>
Wed, 1 Feb 2023 20:57:50 +0000 (12:57 -0800)
The dependence is needed since Utils includes VCSRevision.h, and other
LLVM components that include this header also have the llvm_vcsrevision_h
dependency.

Fixes #60460.

Reviewed By: #bolt, ayermolo

Differential Revision: https://reviews.llvm.org/D143101

bolt/lib/Utils/CMakeLists.txt

index 9ed9be6..d140331 100644 (file)
@@ -7,6 +7,9 @@ add_llvm_library(LLVMBOLTUtils
   LINK_LIBS
   ${LLVM_PTHREAD_LIB}
 
+  DEPENDS
+  llvm_vcsrevision_h
+
   LINK_COMPONENTS
   Support
   )