| 1 | Fix build of cpptest by correcting relative include paths
|
| 2 |
|
| 3 | diff --git a/CMakeLists.txt b/CMakeLists.txt
|
| 4 | index 757b0d1a8..546ecd516 100644
|
| 5 | |
| 6 | |
| 7 | @@ -778,6 +778,11 @@ endif()
|
| 8 | if(GTEST_FOUND)
|
| 9 | tvm_file_glob(GLOB_RECURSE TEST_SRCS tests/cpp/*.cc)
|
| 10 | add_executable(cpptest ${TEST_SRCS})
|
| 11 | +
|
| 12 | + # fix building cpptest if we don't use 3rdParty subtree as when building with GNU Guix
|
| 13 | + # allowng relative paths starting with ../../.. to point to the top of the source dir
|
| 14 | + target_include_directories(cpptest PRIVATE tests/cpp/runtime)
|
| 15 | +
|
| 16 | # include runtime files for unit testing
|
| 17 | target_link_libraries(cpptest PRIVATE ${TVM_TEST_LIBRARY_NAME} GTest::GTest GTest::Main GTest::gmock pthread dl)
|
| 18 | if(DEFINED LLVM_LIBS)
|