From 216ad8f656ccb3dbe631c99d416f90b18f72f5dc Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Tue, 17 Oct 2023 17:58:19 +0000 Subject: [PATCH] style(autofix.ci): automated formatting --- CMakeLists.txt | 4 ++-- src/CMakeLists.txt | 4 ++-- tests/CMakeLists.txt | 17 ++++++----------- 3 files changed, 10 insertions(+), 15 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2b750ed9360d..91c117647d8d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -112,9 +112,9 @@ include(CheckCXXCompilerFlag) #SET(CMAKE_SHARED_LIBRARY_CXX_FLAGS "${CMAKE_SHARED_LIBRARY_CXX_FLAGS} -m32") if (NOT DYNAMIC_LINKING) - if(NOT MSVC) + if (NOT MSVC) set(CMAKE_FIND_LIBRARY_SUFFIXES ".a;.dll.a") - endif() + endif () set(BUILD_SHARED_LIBRARIES OFF) check_cxx_compiler_flag(-static HAVE_STATIC_FLAG) if (HAVE_STATIC_FLAG) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index eabfc0bb160d..3947a144fb5d 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -59,9 +59,9 @@ if (TILES) target_link_libraries(cataclysm-tiles cataclysm-tiles-common) target_compile_definitions(cataclysm-tiles-common PUBLIC TILES) - if(NOT "${CMAKE_EXPORT_COMPILE_COMMANDS}") + if (NOT "${CMAKE_EXPORT_COMPILE_COMMANDS}") target_precompile_headers(cataclysm-tiles-common PUBLIC - ${CMAKE_SOURCE_DIR}/pch/main-pch.hpp) + ${CMAKE_SOURCE_DIR}/pch/main-pch.hpp) endif () if (CMAKE_USE_PTHREADS_INIT) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 4efc7a4d03d2..d3f7578622c6 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -5,17 +5,12 @@ if (BUILD_TESTING) add_definitions(-DCATCH_CONFIG_ENABLE_BENCHMARKING) # TODO: build MO files required for tests - if(MSVC) - find_program(GETTEXT_MSGFMT_EXECUTABLE - msgfmt.exe - HINTS - C:\\msys64\\usr\\bin - C:\\Prorogram\ Files\\Git\\mingw64\\bin - REQUIRED - ) - else() - set(GETTEXT_MSGFMT_EXECUTABLE msgfmt) - endif() + if (MSVC) + find_program(GETTEXT_MSGFMT_EXECUTABLE msgfmt.exe + HINTS C:\\msys64\\usr\\bin C:\\Prorogram\ Files\\Git\\mingw64\\bin REQUIRED) + else () + set(GETTEXT_MSGFMT_EXECUTABLE msgfmt) + endif () if (TILES) add_executable(cata_test-tiles ${CATACLYSM_BN_TEST_SOURCES})