diff --git a/cmake/common/px4_base.cmake b/cmake/common/px4_base.cmake index e13dc023da..2b54cbc230 100644 --- a/cmake/common/px4_base.cmake +++ b/cmake/common/px4_base.cmake @@ -623,9 +623,9 @@ function(px4_find_python_module module) \nfor debian systems try: \ \n\tsudo apt-get install python-${module} \ \nor for all other OSs/debian: \ - \n\tpip install ${module}\n" PY_${module_upper}) + \n\tsudo -H pip install ${module}\n" PY_${module_upper}) #if (NOT PY_${module}_FOUND) - #message(FATAL_ERROR "python module not found, exitting") + #message(FATAL_ERROR "python module not found, exiting") #endif() endfunction(px4_find_python_module)