Create python subdirectory in pcbnew build for the symlink

This commit is contained in:
Ian McInerney 2022-06-25 01:10:20 +01:00
parent 03c279ffd4
commit 4e4b0962db
1 changed files with 2 additions and 0 deletions

View File

@ -872,6 +872,8 @@ else()
file( RELATIVE_PATH PCBNEW_PYTHON_SYMLINK ${PYTHON_FULL_DEST} ${CMAKE_INSTALL_PREFIX}/${KICAD_KIFACE}/_pcbnew${KIFACE_SUFFIX} )
endif()
file( MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/python )
# This is the symlink we use in the installation directory, so it will not resolve in the build directory.
add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/python/_pcbnew.${PYMOD_EXT}
DEPENDS pcbnew_kiface