Commit Graph

348 Commits

Author SHA1 Message Date
55a8f6a4be Change component prefix for NSIS compatibility (#4442) 2025-05-09 12:09:18 -07:00
2d0518b5f7 Fix cmake error in pedantic mode (#4426)
Suppresses error:
CMake Error (dev) at build/coverage/_deps/fmt-src/CMakeLists.txt:208 (set):
  uninitialized variable 'CMAKE_MODULE_PATH'
This error is for project developers. Use -Wno-error=dev to suppress it.
2025-04-24 11:41:33 -07:00
ed27df5760 Replace forward slashes by backslashes in BMI path for MSVC. (#4344)
* Fix slashes in BMI path for MSVC builds
* Fix BMI path for MSVC builds when building with Ninja generator
2025-02-10 00:18:33 -08:00
01a5b56f0d Fix error of unitialized variable FMT_HEADERS
This happens when using e.g. pedantic mode in cmake-init.
2025-01-25 08:41:49 -08:00
c43da35701 Workaround an ICE when using modules with gcc 14.2 and earlier 2025-01-12 08:57:43 -08:00
d57040f949 Prefix components 2025-01-10 19:51:55 -08:00
5fa4bdd758 Define CMake components to allow docs to be installed separately (#4276)
Define two components, core and doc, which can be installed separately.
This facilitates packagers who want to package docs in a separate
package.

After this change it's possible to install only core files with:

     cmake --install build --component core

And only install documentation with:

     cmake --install build --component doc

When no component is specified, the behaviour is unchanged, i.e. if
documentation was built, it will be installed.
2024-12-26 07:13:01 -08:00
f924d16e47 fix: pass /utf-8 only if the compiler is MSVC at build time 2024-09-11 08:21:07 -07:00
6870e4b06b Workaround for GCC regression: false positive null-dereference in vector.resize
Signed-off-by: Vladislav Shchapov <vladislav@shchapov.ru>
2024-09-05 09:40:55 -07:00
fb07b37c5b Prioritize using the header files of self (#4116) 2024-08-13 10:50:49 -07:00
e50c8b6bd8 Fix disabling Unicode support 2024-07-04 07:27:22 -07:00
6f68c62cb5 Ignore doxygen files 2024-06-30 08:42:34 -07:00
d059fe42a8 Ignore vagrant files 2024-06-30 08:33:37 -07:00
43c5b34749 Fix package build 2024-06-30 08:23:25 -07:00
0fae326c42 Update site dir 2024-06-29 08:32:24 -07:00
8b1fcf5cc1 Update doc dir 2024-06-29 08:18:24 -07:00
98dd673cf8 Cleanup cmake 2024-06-14 08:04:11 -07:00
c4ea903250 Only install FILE_SET when needed (#4013) 2024-06-13 12:17:46 -07:00
077e4ae746 Added generator expression to /utf-8 compile option (#3995)
Do not pass the compile options in the project to other compilers such as nvcc
2024-06-09 13:05:17 -07:00
b5c8fd783c Fix doc build 2024-06-09 11:37:18 -07:00
e6d4f927cc Improve docs 2024-06-09 11:17:32 -07:00
8de3e87da1 Add a CMake option to control Unicode support 2024-06-09 11:16:13 -07:00
46d2acb3ba Don't add os.cc to sources with FMT_MODULE (#4004)
It will be included by `fmt.cc`
2024-06-09 11:00:12 -07:00
0f6e716548 Fix missing includes in fmt.cc (#3994)
This causes duplicated std definitions in the fmt module
2024-06-08 13:50:29 -07:00
21372bc0b2 Update cmake config 2024-06-08 08:21:18 -07:00
fcc0b49978 Fix FMT_INSTALL with FMT_MODULE (#3998) 2024-06-08 07:26:53 -07:00
0560c334fb Fix build with FMT_MODULE=OFF (#3997) 2024-06-07 06:25:07 -07:00
5c445bc42c Reverting check to make shorter branch comes first 2024-06-05 21:01:42 -07:00
6abc1204f3 Check if the generator is ninja 2024-06-05 21:01:42 -07:00
a9b8517638 Use native c++ module support from CMake
also fix some clang compilation issues when using c++ modules
2024-06-05 21:01:42 -07:00
dab1a65d2c Sort out directory URI config 2024-06-02 09:47:52 -07:00
871538d3ab Fix install dir 2024-06-02 09:05:32 -07:00
250456d5a3 Migrate to mkdocs 2024-06-02 09:00:40 -07:00
b7809f91e2 Enable Unicode support by default 2024-05-11 15:11:23 -07:00
3b5f3de3b5 Make CMake version message less confusing (#3907) 2024-03-28 18:23:26 -07:00
7a63e233d2 Readd core.h to headers 2024-02-10 07:10:28 -08:00
79f1506fe3 Add base.h 2024-01-09 19:36:12 -08:00
7fd1802686 Fix FMT_OS definition (#3783)
Signed-off-by: Vladislav Shchapov <vladislav@shchapov.ru>
2024-01-02 07:20:09 -08:00
398ddb8fec Don't include fmt/os.h in the module if it is disabled via FMT_OS 2024-01-01 12:21:28 -08:00
4497a2d09a fix cmake build 2023-12-08 08:33:16 -08:00
045b05d79e Revert CMake changes 2023-11-14 06:48:16 -10:00
ec628561c2 Fix formatting 2023-11-13 06:41:28 -10:00
cbb18c237a Add support for CMake 3.28 C++ modules (#3679) 2023-11-13 08:34:42 -08:00
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
154eccfeb1 Convert changelog to markdown for compatibility with release notes 2023-09-04 07:15:18 -07:00
eacd51c249 cmake: fix FMT_PKGCONFIG_DIR path (#3563) 2023-07-31 08:11:56 -07:00
a474916560 Update CMakeLists.txt (#3523) 2023-07-05 06:38:38 -07:00
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
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
8ec94ac6a5 Use full path to pcm 2023-04-14 11:57:17 -07:00