vcpkg/ports/nanopb/fix-install-location.patch

23 lines
719 B
Diff
Raw Normal View History

2023-03-28 02:30:11 +08:00
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4a3d31e..82611ef 100644
2023-03-28 02:30:11 +08:00
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -58,12 +58,15 @@ if(nanopb_BUILD_GENERATOR)
2023-03-28 02:30:11 +08:00
install(
FILES ${PROJECT_BINARY_DIR}/${generator_proto_py_file}
${generator_proto_file}
- DESTINATION ${PYTHON_INSTDIR}/proto/
+ DESTINATION ${CMAKE_INSTALL_BINDIR}/proto/
2023-03-28 02:30:11 +08:00
)
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/ )
2023-03-28 02:30:11 +08:00
endif()
if(WIN32)