Fix cross-compiling ROS2 packages.

This commit is contained in:
Ben Wolsieffer 2022-09-23 18:29:03 -04:00
parent 93cf5a5ba4
commit 87396617b9
5 changed files with 47 additions and 5 deletions

View file

@ -0,0 +1,6 @@
_pythonCmakeModulePreConfigureHook() {
cmakeFlags+=" -DPYTHON_EXECUTABLE=@pythonExecutable@"
cmakeFlags+=" -DPYTHON_LIBRARY=@pythonLibrary@"
cmakeFlags+=" -DPYTHON_INCLUDE_DIR=@pythonIncludeDir@"
}
preConfigureHooks+=(_pythonCmakeModulePreConfigureHook)