From 00251024c45549299177c5cd2ddc209555495c0d Mon Sep 17 00:00:00 2001 From: orbitcowboy Date: Sun, 28 Aug 2022 00:21:10 +0200 Subject: [PATCH] Cleanup some cmakelint warnings in CMakeLists.txt --- CMakeLists.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3a561e50e..2628867a1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -14,7 +14,7 @@ include(cmake/compilerDefinitions.cmake) include(cmake/buildFiles.cmake) include(cmake/cxx11.cmake) include(cmake/printInfo.cmake) -if (BUILD_GUI) +if(BUILD_GUI) include(cmake/qtCompat.cmake) endif() @@ -24,7 +24,7 @@ file(GLOB addons "addons/*.py") file(GLOB cfgs "cfg/*.cfg") file(GLOB platforms "platforms/*.xml") -if (LIBXML2_XMLLINT_EXECUTABLE) +if(LIBXML2_XMLLINT_EXECUTABLE) add_custom_target(validateCFG DEPENDS validateCFG-cmd) add_custom_command(OUTPUT validateCFG-cmd COMMAND ${LIBXML2_XMLLINT_EXECUTABLE} --noout ${CMAKE_SOURCE_DIR}/cfg/cppcheck-cfg.rng) @@ -50,7 +50,7 @@ if (LIBXML2_XMLLINT_EXECUTABLE) add_custom_target(createXMLExamples DEPENDS errorlist-xml example-xml) - if (PYTHON_EXECUTABLE) + if(PYTHON_EXECUTABLE) add_custom_target(checkCWEEntries ${PYTHON_EXECUTABLE} ${CMAKE_SOURCE_DIR}/tools/listErrorsWithoutCWE.py -F ${CMAKE_BINARY_DIR}/errorlist.xml DEPENDS errorlist-xml) endif() @@ -64,7 +64,7 @@ if (LIBXML2_XMLLINT_EXECUTABLE) add_custom_target(validateRules ${LIBXML2_XMLLINT_EXECUTABLE} --noout ${CMAKE_SOURCE_DIR}/rules/*.xml) endif() -if (BUILD_TESTS) +if(BUILD_TESTS) enable_testing() endif() @@ -83,7 +83,7 @@ if(USE_BUNDLED_TINYXML2) add_subdirectory(externals/tinyxml2) endif() add_subdirectory(externals/simplecpp) -add_subdirectory(lib) # CppCheck Library +add_subdirectory(lib) # CppCheck Library add_subdirectory(cli) # Client application add_subdirectory(test) # Tests add_subdirectory(gui) # Graphical application