diff options
author | Peter Wu <peter@lekensteyn.nl> | 2016-10-19 12:19:38 +0200 |
---|---|---|
committer | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2016-10-19 11:33:33 +0000 |
commit | d399bfaa0768de53831d0a841f0e4ef55bd37d24 (patch) | |
tree | 8b533caa03f0d4d47a424f17216eae921d46100d /cmake | |
parent | 10c46fc3082b728b08a7dcd70cad7d6eef1337bc (diff) |
cmake/FindPOD: improve formatting, add modelines
CMake standard style is to use lowercase function names, do that.
Change-Id: I893825cfac0cc402177ffb1a0f43f0ffc6341c45
Reviewed-on: https://code.wireshark.org/review/18312
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/modules/FindPOD.cmake | 33 |
1 files changed, 23 insertions, 10 deletions
diff --git a/cmake/modules/FindPOD.cmake b/cmake/modules/FindPOD.cmake index 23e1a57382..83a9acebc8 100644 --- a/cmake/modules/FindPOD.cmake +++ b/cmake/modules/FindPOD.cmake @@ -3,9 +3,9 @@ # This module looks for some usual Unix commands. # -INCLUDE(FindCygwin) +include(FindCygwin) -FIND_PROGRAM(POD2MAN_EXECUTABLE +find_program(POD2MAN_EXECUTABLE NAMES pod2man PATHS @@ -16,7 +16,7 @@ FIND_PROGRAM(POD2MAN_EXECUTABLE /sbin ) -FIND_PROGRAM(POD2HTML_EXECUTABLE +find_program(POD2HTML_EXECUTABLE NAMES pod2html PATHS @@ -29,20 +29,21 @@ FIND_PROGRAM(POD2HTML_EXECUTABLE # handle the QUIETLY and REQUIRED arguments and set POD2HTML_FOUND to TRUE if # all listed variables are TRUE -INCLUDE(FindPackageHandleStandardArgs) -FIND_PACKAGE_HANDLE_STANDARD_ARGS(POD DEFAULT_MSG POD2MAN_EXECUTABLE POD2HTML_EXECUTABLE) +include(FindPackageHandleStandardArgs) +find_package_handle_standard_args(POD DEFAULT_MSG POD2MAN_EXECUTABLE POD2HTML_EXECUTABLE) -MARK_AS_ADVANCED( +mark_as_advanced( POD2MAN_EXECUTABLE POD2HTML_EXECUTABLE ) # run pod2man and pod2html -MACRO(pod2manhtml _sourcefile _manext) - GET_FILENAME_COMPONENT(_basefile ${_sourcefile} NAME) +macro(pod2manhtml _sourcefile _manext) + get_filename_component(_basefile ${_sourcefile} NAME) set(_outman ${_basefile}.${_manext}) set(_outhtml ${_basefile}.html) - ADD_CUSTOM_COMMAND( + + add_custom_command( OUTPUT ${_outman} ${_outhtml} @@ -64,5 +65,17 @@ MACRO(pod2manhtml _sourcefile _manext) ${_sourcefile}.pod ${CMAKE_SOURCE_DIR}/docbook/ws.css ) -ENDMACRO(pod2manhtml) +endmacro(pod2manhtml) +# +# Editor modelines - http://www.wireshark.org/tools/modelines.html +# +# Local variables: +# c-basic-offset: 8 +# tab-width: 8 +# indent-tabs-mode: t +# End: +# +# vi: set shiftwidth=8 tabstop=8 noexpandtab: +# :indentSize=8:tabSize=8:noTabs=false: +# |