Commit Graph

309 Commits

Author SHA1 Message Date
H1X4
4497a2d09a fix cmake build 2023-12-08 08:33:16 -08:00
Victor Zverovich
045b05d79e Revert CMake changes 2023-11-14 06:48:16 -10:00
Victor Zverovich
ec628561c2 Fix formatting 2023-11-13 06:41:28 -10:00
Luis Caro Campos
cbb18c237a
Add support for CMake 3.28 C++ modules (#3679) 2023-11-13 08:34:42 -08:00
Petr Klima
52a99a67f7
Set PDB path for Visual Studio (#3702)
Ensure the PDB files are output into the same directory and with the same name
as the static library when using Visual Studio.

Resolves fmtlib#3701.
2023-11-07 08:22:52 -08:00
Victor Zverovich
154eccfeb1 Convert changelog to markdown for compatibility with release notes 2023-09-04 07:15:18 -07:00
Alexandre Bouvier
eacd51c249
cmake: fix FMT_PKGCONFIG_DIR path (#3563) 2023-07-31 08:11:56 -07:00
Alta
a474916560
Update CMakeLists.txt (#3523) 2023-07-05 06:38:38 -07:00
Petr Mánek
13156e54bf
Revert "add ability to build Apple framework using CMAKE_FRAMEWORK" (#3496)
This reverts commit ae25f7968e.

Co-authored-by: Petr Manek <1252039-petrmanek@users.noreply.gitlab.com>
2023-06-18 20:41:07 -07:00
Gleb Mazovetskiy
a54cb108d4
CMake: Do not fail on unknown compiler features (#3453)
If CMake does not know much about a compiler, `target_compile_features` will fail. Issue a warning instead.
2023-05-22 14:17:32 -07:00
Victor Zverovich
8ec94ac6a5 Use full path to pcm 2023-04-14 11:57:17 -07:00
Victor Zverovich
d97d8cea67 Push module check to test 2023-04-14 11:42:01 -07:00
Victor Zverovich
d9c19940a3 Update add_module_library 2023-04-13 17:13:52 -07:00
Victor Zverovich
4b5ae0b0ef Remove unnecessary module support check 2023-04-13 16:53:45 -07:00
Victor Zverovich
75f3b1c094 Use add_module_library 2023-04-12 09:10:34 -07:00
Victor Zverovich
faf83406a9 Workaround cmake issue 2023-04-11 15:59:08 -07:00
Victor Zverovich
165814d57a Add module support to CMake 2023-04-11 14:38:34 -07:00
Victor Zverovich
4613d48fd3 FMT_EXPORT -> FMT_LIB_EXPORT 2023-04-10 08:24:23 -07:00
Victor Zverovich
e406ddbfaf Remove broken part of the config 2023-04-08 08:46:43 -07:00
Mikhail Paulyshka
d3c10f5167
fix compilation for MSDOS (#3369) 2023-04-01 13:40:53 -07:00
François Carouge
2c80cedc39
Fix standard default installation target presence (#3264) 2023-01-10 17:56:00 -08:00
Vladislav Shchapov
115ca96e0e Bump tested CMake version to 3.25
Signed-off-by: Vladislav Shchapov <vladislav@shchapov.ru>
2022-11-30 08:09:32 -08:00
Chris Thrasher
69ffedfe52 Use target_compile_features to specify C++ standard requirement 2022-11-26 11:03:17 -08:00
Tinson Lai
5ad7b71381
Fix options for C++20 experimental module in CMake (#3134)
* Fix options for C++20 experimental module in CMake

* Replace `FMT_CAN_MODULE` by `FMT_MODULE` in test/CMakeLists.txt
2022-10-12 08:23:12 -07:00
Vladislav Shchapov
0ccaed3a6c
Set CMAKE_RUNTIME_OUTPUT_DIRECTORY relative to CMAKE_CURRENT_BINARY_DIR instead of CMAKE_BINARY_DIR (#3120)
Signed-off-by: Vladislav Shchapov <vladislav@shchapov.ru>

Signed-off-by: Vladislav Shchapov <vladislav@shchapov.ru>
2022-09-28 16:51:23 -07:00
Vladislav Shchapov
682e097bee Remove -Wl,--as-needed linker option
Signed-off-by: Vladislav Shchapov <vladislav@shchapov.ru>
2022-08-07 06:51:41 -07:00
Victor Zverovich
5c7d315ded Remove locale.h 2022-05-21 08:19:09 -07:00
Mattias Ljungström
a935ac3e60
MSVC CMake generation optimization (#2852) 2022-04-08 06:27:23 -07:00
Andrey Filipenkov
d8e1dd4ab2 improve installing headers 2022-02-17 08:13:26 -08:00
Andrey Filipenkov
ae25f7968e add ability to build Apple framework using CMAKE_FRAMEWORK 2022-02-17 08:13:26 -08:00
Victor Zverovich
afbcf1e8ea Remove legacy C locale wrapper 2022-02-05 12:37:21 -08:00
Victor Zverovich
a7aecbfcaa Remove an old mingw workaround 2022-01-23 09:44:53 -08:00
VasiliPupkin256
dfcc730cbd Making target_compile_options PRIVATE, fix #2726, fix #2507 2022-01-23 09:36:11 -08:00
Alexey Ochapov
c5aafd8f90 expose headers as SYSTEM depending on special configuration option 2021-12-19 08:29:51 -08:00
Victor Zverovich
1e96e01766 Fix compiler flag check (#2540) 2021-10-09 06:05:05 -07:00
Victor Zverovich
894faf3fed Refactor presentation types 2021-09-06 13:32:33 -07:00
Spiros Tsalikis
3def950b84 Set FMT_CAN_MODULE=OFF for MSVC 19.29.30035+ 2021-07-23 09:35:09 -07:00
Владислав Щапов
fd16bcb20c Fix bug in cmake join function 2021-06-24 09:10:53 -07:00
Victor Zverovich
ff37e41625 wchar.h -> xchar.h because it handles other code unit types too 2021-05-29 09:37:17 -07:00
Jose Miguel Pérez
17c993c753
Fixed compilation with CMake < 3.7 (#2321) 2021-05-28 20:24:31 -07:00
Sergiu Deitsch
128cbdeb2f cmake: hide private symbols by default 2021-05-21 08:25:08 -07:00
Daniela Engert
5a0d99fa0b Add a test for the module 2021-05-20 10:26:31 -07:00
Victor Zverovich
0dd91e20d5 Add wchar.h for wide char overloads 2021-05-17 21:59:10 -07:00
Victor Zverovich
bb006f9735 Replace TYPED_TEST_CASE with TYPED_TEST_SUITE 2021-04-24 17:46:49 -07:00
Victor Zverovich
8f9ddf452d Remove deprecated posix.h 2021-04-24 07:03:11 -07:00
Dan Ibanez
58aa04573f
Fix ordering of install commands for CMake (#2122)
the library itself needs to be installed before
the fmt-targets.cmake file is installed,
otherwise the installed targets file doesn't
actually point to the library using
IMPORTED_LOCATION
2021-01-30 09:03:55 -08:00
randomizedthinking
6972b5f3d2
Add build variable: FMT_MASTER_PROJECT (#2100) 2021-01-16 16:56:49 -08:00
Victor Zverovich
ac35208115 Install fmt/args.h (#2096) 2021-01-16 08:13:38 -08:00
Jonathan Gopel
eb52ac7a35 🆕 Enable -Wshadow in pedantic mode
Problem:
- All `-Wshadow` warnings are fixed but there is nothing stopping them
  from being reintroduced.

Solution:
- Fail pedantic builds on `-Wshadow` warnings. This allows CI to prevent
  reoccurrence of the warning.

Notes:
- Not enabling `-Wshadow` for gcc versions 4 or lower because the
  warning is much more aggressive there to the point that it's mostly
  just noise.
2020-11-03 07:30:27 -08:00
Victor Zverovich
2f448ed565 Fix fuzzer timeouts 2020-10-12 16:46:21 -07:00