From a1fc7f7d2ceed2acc6de31292ab7eff770583787 Mon Sep 17 00:00:00 2001 From: Tim Creech Date: Fri, 15 Nov 2024 17:12:49 -0500 Subject: [PATCH] [XPTI][CMake] Make xptid depend on xpti-headers as well When building xpti we arrange to copy xpti headers into the build directory. On Windows we may instead be building the debug version, xptid, so copy the headers in that case too. --- xpti/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xpti/CMakeLists.txt b/xpti/CMakeLists.txt index 2f33b74d285a4..6433e39c94c70 100644 --- a/xpti/CMakeLists.txt +++ b/xpti/CMakeLists.txt @@ -91,6 +91,9 @@ if (LLVM_BINARY_DIR) COMMENT "Copying XPTI headers ..." ) add_dependencies(xpti xpti-headers) + if (MSVC) + add_dependencies(xptid xpti-headers) + endif() endif() include(GNUInstallDirs)