Browse Source

cmake add a few include guards

- this is a minor cmake configure time optimization
sbg
Daniel Agar 5 years ago committed by GitHub
parent
commit
ea79bd733d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      cmake/px4_find_python_module.cmake
  2. 6
      cmake/px4_git.cmake
  3. 6
      cmake/px4_parse_function_args.cmake

6
cmake/px4_find_python_module.cmake

@ -31,6 +31,12 @@ @@ -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
#

6
cmake/px4_git.cmake

@ -31,6 +31,12 @@ @@ -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

6
cmake/px4_parse_function_args.cmake

@ -31,6 +31,12 @@ @@ -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

Loading…
Cancel
Save