Skip to content

Commit

Permalink
style(autofix.ci): automated formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Oct 17, 2023
1 parent 11ed210 commit 216ad8f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 15 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
17 changes: 6 additions & 11 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down

0 comments on commit 216ad8f

Please sign in to comment.