Skip to content

Commit

Permalink
cmake add a few include guards
Browse files Browse the repository at this point in the history
 - this is a minor cmake configure time optimization
  • Loading branch information
dagar authored Nov 16, 2019
1 parent df73a66 commit ea79bd7
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmake/px4_find_python_module.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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
#
Expand Down
6 changes: 6 additions & 0 deletions cmake/px4_git.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions cmake/px4_parse_function_args.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ea79bd7

Please sign in to comment.