This is an automated email from the ASF dual-hosted git repository.
tqchen pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm.git
The following commit(s) were added to refs/heads/main by this push:
new 174f46ea1d Fix cpp_rtvm cmake build on Windows (#16724)
174f46ea1d is described below
commit 174f46ea1d706c52cc013c73674d2864aaa14f36
Author: MizuKuma <[email protected]>
AuthorDate: Sat Mar 16 17:31:23 2024 +0800
Fix cpp_rtvm cmake build on Windows (#16724)
* fix cpp_rtvm cmake build on Windows
* Fix include path for cpp_rtvm
---
apps/cpp_rtvm/CMakeLists.txt | 4 ++--
apps/cpp_rtvm/main.cc | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/apps/cpp_rtvm/CMakeLists.txt b/apps/cpp_rtvm/CMakeLists.txt
index bfd26ee3fe..f89663f081 100644
--- a/apps/cpp_rtvm/CMakeLists.txt
+++ b/apps/cpp_rtvm/CMakeLists.txt
@@ -13,8 +13,8 @@ set(TVM_RUNNER_SOURCES
set(RTVM_LINKER_LIBS "")
if(WIN32)
- list(APPEND RTVM_SOURCES win32_process.cc)
- list(APPEND TVM_RUNNER_SOURCES win32_process.cc)
+ list(APPEND RTVM_SOURCES ../cpp_rpc/win32_process.cc)
+ list(APPEND TVM_RUNNER_SOURCES ../cpp_rpc/win32_process.cc)
endif()
# Set output to same directory as the other TVM libs
diff --git a/apps/cpp_rtvm/main.cc b/apps/cpp_rtvm/main.cc
index dc3cf1c414..2efd7f4a94 100644
--- a/apps/cpp_rtvm/main.cc
+++ b/apps/cpp_rtvm/main.cc
@@ -40,7 +40,7 @@
#include "tvm_runner.h"
#if defined(_WIN32)
-#include "win32_process.h"
+#include "../cpp_rpc/win32_process.h"
#endif
using namespace std;