[cmake] Copy llvm-driver-template.cpp.in into build dir as well
authorNikita Popov <npopov@redhat.com>
Wed, 21 Dec 2022 10:40:33 +0000 (11:40 +0100)
committerNikita Popov <npopov@redhat.com>
Wed, 21 Dec 2022 10:42:03 +0000 (11:42 +0100)
We were copying it into the installed version of the directory,
but not into the one in the build directory. Because of that it
was not directly usable as a cmake module by subprojects that
also use the driver functionality.

llvm/cmake/modules/CMakeLists.txt

index e46b27a..d2997a4 100644 (file)
@@ -108,6 +108,7 @@ file(COPY .
   NO_SOURCE_PERMISSIONS
   FILES_MATCHING PATTERN *.cmake
   PATTERN CMakeFiles EXCLUDE
+  PATTERN llvm-driver-template.cpp.in
   )
 
 #