From 25d504692fa94cbabdda1ba361e8491cb17dff19 Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Wed, 2 Mar 2022 17:23:55 +0100 Subject: [PATCH] ARROW-15830: [C++] Ensure target directory exists before running Substrait generation --- cpp/cmake_modules/ThirdpartyToolchain.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/cpp/cmake_modules/ThirdpartyToolchain.cmake b/cpp/cmake_modules/ThirdpartyToolchain.cmake index 2e6b4be4b88..dde6ab76b38 100644 --- a/cpp/cmake_modules/ThirdpartyToolchain.cmake +++ b/cpp/cmake_modules/ThirdpartyToolchain.cmake @@ -1651,6 +1651,7 @@ macro(build_substrait) set(SUBSTRAIT_LOCAL_DIR ${SOURCE_DIR}) set(SUBSTRAIT_CPP_DIR "${CMAKE_CURRENT_BINARY_DIR}/substrait_ep-generated") + file(MAKE_DIRECTORY ${SUBSTRAIT_CPP_DIR}) set(SUBSTRAIT_SUPPRESSED_WARNINGS) if(MSVC)