diff --git a/cmake/px4_find_python_module.cmake b/cmake/px4_find_python_module.cmake index 4412abd1be..55155e2d9a 100644 --- a/cmake/px4_find_python_module.cmake +++ b/cmake/px4_find_python_module.cmake @@ -31,6 +31,12 @@ # ############################################################################ +# cmake include guard +if(px4_find_python_module_included) + return() +endif(px4_find_python_module_included) +set(px4_find_python_module_included true) + # # px4_find_python_module # diff --git a/cmake/px4_git.cmake b/cmake/px4_git.cmake index 1f35203ccd..22fb7d358b 100644 --- a/cmake/px4_git.cmake +++ b/cmake/px4_git.cmake @@ -31,6 +31,12 @@ # ############################################################################ +# cmake include guard +if(px4_git_included) + return() +endif(px4_git_included) +set(px4_git_included true) + #============================================================================= # # px4_add_git_submodule diff --git a/cmake/px4_parse_function_args.cmake b/cmake/px4_parse_function_args.cmake index cee0827c78..d7a23344db 100644 --- a/cmake/px4_parse_function_args.cmake +++ b/cmake/px4_parse_function_args.cmake @@ -31,6 +31,12 @@ # ############################################################################ +# cmake include guard +if(px4_parse_function_args_included) + return() +endif(px4_parse_function_args_included) +set(px4_parse_function_args_included true) + #============================================================================= # # px4_parse_function_args