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-ffi.git


The following commit(s) were added to refs/heads/main by this push:
     new 58875b9  [CMAKE] Fix Cmake when building as subdir (#112)
58875b9 is described below

commit 58875b99330487e3629778f00a02c2278e3ea851
Author: Tianqi Chen <[email protected]>
AuthorDate: Mon Oct 13 19:19:38 2025 -0400

    [CMAKE] Fix Cmake when building as subdir (#112)
    
    This PR fixes the cmake when building as subdir
---
 CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index be2a84f..ff1a146 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -23,7 +23,7 @@ option(TVM_FFI_USE_LIBBACKTRACE "Enable libbacktrace" ON)
 option(TVM_FFI_USE_EXTRA_CXX_API "Enable extra CXX API in shared lib" ON)
 option(TVM_FFI_BACKTRACE_ON_SEGFAULT "Set signal handler to print backtrace on 
segfault" ON)
 
-include(${CMAKE_SOURCE_DIR}/cmake/Utils/DetectTargetTriple.cmake)
+include(${CMAKE_CURRENT_LIST_DIR}/cmake/Utils/DetectTargetTriple.cmake)
 
 if (TVM_FFI_USE_LIBBACKTRACE)
   include(${CMAKE_CURRENT_LIST_DIR}/cmake/Utils/AddLibbacktrace.cmake)

Reply via email to