early-access version 2853
This commit is contained in:
25
externals/vcpkg/ports/nanopb/fix-python.patch
vendored
Executable file
25
externals/vcpkg/ports/nanopb/fix-python.patch
vendored
Executable file
@@ -0,0 +1,25 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index d9c5e5e..4e94bb7 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -41,7 +41,6 @@ endif()
|
||||
if(nanopb_BUILD_GENERATOR)
|
||||
set(generator_protos nanopb)
|
||||
|
||||
- find_package(Python REQUIRED)
|
||||
execute_process(
|
||||
COMMAND ${Python_EXECUTABLE} -c
|
||||
"from distutils import sysconfig; print(sysconfig.get_python_lib(prefix=''))"
|
||||
@@ -64,10 +63,10 @@ if(nanopb_BUILD_GENERATOR)
|
||||
DESTINATION ${PYTHON_INSTDIR}/proto/
|
||||
)
|
||||
endforeach()
|
||||
+ install( FILES generator/proto/_utils.py
|
||||
+ DESTINATION ${PYTHON_INSTDIR}/proto/ )
|
||||
endif()
|
||||
|
||||
-install( FILES generator/proto/_utils.py
|
||||
- DESTINATION ${PYTHON_INSTDIR}/proto/ )
|
||||
|
||||
if( WIN32 )
|
||||
install(
|
||||
Reference in New Issue
Block a user