Commit Graph
24 Commits
Author SHA1 Message Date
Joakim Thorén 491dfd8502 Remove platform related checks for setting 'CMAKE_C(XX)_COMPILER_LAUNCHER' as 'ccache'. 2024-01-04 16:00:00 +01:00
Joakim Thorén c8ed138145 Use statically linked Qt5 for Windows MinGW builds. This solves an issue where OpenSSL dlls had to be manually copied into binary dir for VCMI_launcher to be able to download mods. 2024-01-03 23:58:37 +01:00
Joakim Thorén a78a3b3e4f Added documentation on how to build using windows-mingw-release preset 2024-01-02 22:24:41 +01:00
Joakim Thorén 5f27359fce Ignore compile_commands.json 2024-01-02 21:57:27 +01:00
Joakim Thorén 50698db1c0 Merge branch 'enable_colorized_compiler_output' of https://github.com/Kuxe/vcmi into enable_colorized_compiler_output 2024-01-02 21:33:52 +01:00
Joakim Thorén 4f4298ece8 Change default of ENABLE_COLORIZED_COMPILER_OUTPUT from off to on 2024-01-02 21:33:49 +01:00
Joakim ThorénandAndrey Filipenkov f7896b20bf Update CMakeLists.txt
Co-authored-by: Andrey Filipenkov <kambaladecapitator@gmail.com>
2024-01-02 11:14:27 +01:00
Joakim Thorén eeab16a57d Enable ccache support for MinGW 2024-01-02 01:59:01 +01:00
Joakim Thorén 4d2423ff81 Add 'ENABLE_COLORIZED_COMPILER_OUTPUT' CMake option for Clang/GNU. This makes it so that compiler output is colorized for better readability. I am not sure if this has performance implications w.r.t console print speed --- hence default is set to 'off'. 2024-01-02 01:52:57 +01:00
Joakim Thorén 100664e019 Fix compilation error where gcc 12.1.0 (MinGW) errors with "writing 1 byte into a region of size 0" 2024-01-02 01:43:49 +01:00
Joakim Thorén 30b851da7c Merge branch 'develop' of https://github.com/vcmi/vcmi into windows_mingw_cmake_presets 2024-01-01 22:53:19 +01:00
Joakim ThorénandAndrey Filipenkov daf9f9f7f5 Re-add const that was erronously removed with 88ec4fa
Co-authored-by: Andrey Filipenkov <kambaladecapitator@gmail.com>
2023-12-30 11:01:21 +01:00
Joakim Thorén 3536e2146e Add 'windows-mingw-release' to CMakePresets.json 2023-12-30 00:30:08 +01:00
Joakim Thorén 8846fba1fc Fixes compilation error "ResourceSet.h:33:21: error: function 'ResourceSet::ResourceSet()' definition is marked dllimport" when building with g++ 12.1.0 2023-12-30 00:29:31 +01:00
Joakim Thorén 88ec4fa0e7 Use getTileThreat-helper instead of directly accessing hitMap with tile coordinates 2023-12-29 23:12:06 +01:00
Joakim Thorén 25be15a023 Use 'REQUIRED' instead of custom error message when ccache is not found 2023-12-29 21:54:58 +01:00
Joakim Thorén 61314a36f6 Fix copy-paste mistake 2023-12-27 22:35:43 +01:00
Joakim Thorén 01f602ab92 Fixes warning about usage of unused variable 2023-12-27 22:25:29 +01:00
Joakim Thorén 406d136cdc Fixes warnings about possibly dangling references 2023-12-27 22:24:58 +01:00
Joakim Thorén 721c189b20 Replace direct usage of CMAKE_CXX_COMPILER_LAUNCHER with ENABLE_CCACHE in CI 2023-12-27 21:17:56 +01:00
Joakim Thorén 9001124c3a Add linux-gcc-release-ccache and linux-clang-release-ccache 2023-12-27 21:16:34 +01:00
Joakim Thorén 2569e1c661 Update documentation to suggest using option ENABLE_CCACHE instead of directly setting CMAKE_C(XX)_COMPILER_LAUNCHER 2023-12-27 21:13:41 +01:00
Joakim Thorén fce3b5b83c Remove redundant find_program and if(CCACHE) - if ENABLE_CCACHE is set and the generation hasn't already failed then CCACHE is guaranteed to be set and point to a ccache binary. 2023-12-27 21:12:52 +01:00
Joakim Thorén 7b02750034 ENABLE_CCACHE option is available for all platforms 2023-12-27 21:10:56 +01:00