diff options
author | Peter Wu <peter@lekensteyn.nl> | 2016-09-30 16:06:15 +0200 |
---|---|---|
committer | Dario Lombardo <lomato@gmail.com> | 2016-09-30 20:08:02 +0000 |
commit | 534787e402d6aa8b349638f911a2a65b013c6594 (patch) | |
tree | 9cfaeb38a16eab0fee86b3b0fb8f9245c7813f7a /plugins/wimax/CMakeLists.txt | |
parent | 53c91974c7e8f77555920e137cab80b5418e992b (diff) | |
download | wireshark-534787e402d6aa8b349638f911a2a65b013c6594.tar.gz wireshark-534787e402d6aa8b349638f911a2a65b013c6594.tar.bz2 wireshark-534787e402d6aa8b349638f911a2a65b013c6594.zip |
cmake: make WERROR_COMMON_FLAGS a normal string
Instead of checking for the boolean "FALSE", just set an empty string.
This avoids the need to check for WERROR_COMMON_FLAGS before using it.
The transformation is the same for all files, remove
"if (WERROR_COMMON_FLAGS)" and "endif()", reindent and add quotes (since
we have a string here and not a list).
Modelines have been added where missing.
Change-Id: I0ab05ae507c51fa77336d49a99a226399cc81b92
Reviewed-on: https://code.wireshark.org/review/17997
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: João Valverde <j@v6e.pt>
Reviewed-by: Dario Lombardo <lomato@gmail.com>
Tested-by: Dario Lombardo <lomato@gmail.com>
Diffstat (limited to 'plugins/wimax/CMakeLists.txt')
-rw-r--r-- | plugins/wimax/CMakeLists.txt | 25 |
1 files changed, 18 insertions, 7 deletions
diff --git a/plugins/wimax/CMakeLists.txt b/plugins/wimax/CMakeLists.txt index f7cffbca18..b59b818ec3 100644 --- a/plugins/wimax/CMakeLists.txt +++ b/plugins/wimax/CMakeLists.txt @@ -82,13 +82,11 @@ set(CLEAN_FILES ${PLUGIN_FILES} ) -if (WERROR_COMMON_FLAGS) - set_source_files_properties( - ${CLEAN_FILES} - PROPERTIES - COMPILE_FLAGS ${WERROR_COMMON_FLAGS} - ) -endif() +set_source_files_properties( + ${CLEAN_FILES} + PROPERTIES + COMPILE_FLAGS "${WERROR_COMMON_FLAGS}" +) include_directories(${CMAKE_CURRENT_SOURCE_DIR}) @@ -117,3 +115,16 @@ CHECKAPI( ${DISSECTOR_SUPPORT_SRC} ${DISSECTOR_HEADERS} ) + +# +# 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: +# |