vcpkg/ports/nanopb/fix-install-location.patch
Frank 42bd1e8994
[nanopb] Remove python path (#33348)
* [nanopb] Remove python path

* version

* fix tool

* version
2023-08-28 13:25:43 -07:00

23 lines
719 B
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4a3d31e..82611ef 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -58,12 +58,15 @@ if(nanopb_BUILD_GENERATOR)
install(
FILES ${PROJECT_BINARY_DIR}/${generator_proto_py_file}
${generator_proto_file}
- DESTINATION ${PYTHON_INSTDIR}/proto/
+ DESTINATION ${CMAKE_INSTALL_BINDIR}/proto/
)
endforeach()
install( FILES generator/proto/_utils.py
- DESTINATION ${PYTHON_INSTDIR}/proto/ )
+ DESTINATION ${CMAKE_INSTALL_BINDIR}/proto/ )
+
+ install( FILES generator/proto/__init__.py
+ DESTINATION ${CMAKE_INSTALL_BINDIR}/proto/ )
endif()
if(WIN32)