From b158cced0cbd8c5b9f533b703014273823f8f25d Mon Sep 17 00:00:00 2001 From: Michael Carroll Date: Mon, 17 Jul 2023 20:38:21 +0000 Subject: [PATCH] Create directory before touching Signed-off-by: Michael Carroll --- src/python_pybind11/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/src/python_pybind11/CMakeLists.txt b/src/python_pybind11/CMakeLists.txt index 4c3f6695..935d34ac 100644 --- a/src/python_pybind11/CMakeLists.txt +++ b/src/python_pybind11/CMakeLists.txt @@ -108,6 +108,7 @@ function(configure_build_install_location _library_name) RUNTIME_OUTPUT_DIRECTORY $<1:${CMAKE_CURRENT_BINARY_DIR}/test/gz>) # Touch an init file to mark this directory as a usable python module + file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/test/gz/) file(TOUCH ${CMAKE_CURRENT_BINARY_DIR}/test/gz/__init__.py) # Install library for actual use