diff --git a/export/planloader/tests/CMakeLists.txt b/export/planloader/tests/CMakeLists.txt index debc785b..2f4939f0 100644 --- a/export/planloader/tests/CMakeLists.txt +++ b/export/planloader/tests/CMakeLists.txt @@ -15,7 +15,10 @@ add_test_case( gtest gtest_main) -set(TEXTPLAN_SOURCE_DIR "${CMAKE_SOURCE_DIR}/src/substrait/textplan") +cmake_path(GET CMAKE_CURRENT_SOURCE_DIR PARENT_PATH TEXTPLAN_SOURCE_DIR) +cmake_path(GET TEXTPLAN_SOURCE_DIR PARENT_PATH TEXTPLAN_SOURCE_DIR) +cmake_path(GET TEXTPLAN_SOURCE_DIR PARENT_PATH TEXTPLAN_SOURCE_DIR) +set(TEXTPLAN_SOURCE_DIR "${TEXTPLAN_SOURCE_DIR}/src/substrait/textplan") add_custom_command( TARGET planloader_test