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