Commit Graph

2989 Commits (f76fa0fcaf628ac2a4c087ba54e0a8219dec2a24)
 

Author SHA1 Message Date
Arthur Brainville (Ybalrid) f76fa0fcaf Add an option that allow user to disable warnings
This option is false by default, thus do not change the current behavior
of the build system.

This is useful when the user vendor spdlog's code into his own
codebase and do not want to have the compiler warn about spdlog's code.

This also is an easy way to prevent CMake to set non-compatible flags on
`clang-cl` (clang for Visual Studio) like `-pedantic`.

In practice, this patch does:

 -add option `SPDLOG_DISABLE_WARNINGS`, `off` state by default
 -add conditional test checking that the option above is `off`.

If the option is manually turned on by the user: behavior is to
skip the call to `spdlog_enable_warnings` on `spdlog` build target.

If the user does nothing, current behavior is unchanged.
5 years ago
Gabi Melman cf6f1dd01e
Merge pull request #1387 from gocarlos/patch-1
docs: spdlog now available in conan center, bincrafters repo is deprecated
6 years ago
Carlos Gomes Martinho 286eb59081
docs: spdlog now available in conan center 6 years ago
Gabi Melman 40bb28e9b6
Merge pull request #1378 from ldanko/v1.x
meson: add fallback to fmt dependency
6 years ago
Łukasz Dańko aac085a9be meson: add fallback to fmt dependency
Now `fmt` library can be used as subproject which helps with cross
compilation.
6 years ago
Gabi Melman 58e68901c7
Merge pull request #1370 from segfault-magnet/bugfix/invalid_meson_option
Fix invalid meson option
6 years ago
Ahmed Sagdati 8e69c6e492 Fix invalid meson option 6 years ago
gabime 4d98a14cb1 Updated fmt.cpp to 6.1.2 6 years ago
Gabi Melman 09d729bfba
Update README.md 6 years ago
Gabi Melman 9caaca742e
Update README.md 6 years ago
Gabi Melman ac95c3ffbf
Update README.md 6 years ago
Gabi Melman 9715d80030
Update README.md 6 years ago
Gabi Melman a0a1e5c078
Update README.md 6 years ago
Gabi Melman d7ba1fdd3d
Update README.md 6 years ago
Gabi Melman c73a5ff918
Merge pull request #1367 from mike239x/v1.x
Fix a small problem in the basic example
6 years ago
Mike Lezhnin 9858d4e918 Fix a small problem in the basic example
The line
```
SPDLOG_TRACE("Some trace message with param {}", {});
```
which normally is discarded at the compile time since by deafult
`SPDLOG_ACTIVE_LEVEL` is at `SPDLOG_LEVEL_INFO`. If however, one goes
to `tweak.me` and sets
```
 #define SPDLOG_ACTIVE_LEVEL SPDLOG_LEVEL_TRACE
```
suddenly the basic example does not compile any more.
This commit fixes the potential problem.
6 years ago
gabime d52e825bbc clang-format 6 years ago
gabime ebaa16f403 CMakeLists.txt allow overriding the cpp standard to higher than 11 6 years ago
gabime 175741ed1d Bump fmt to 6.1.2 6 years ago
gabime 0f8f510ebb removed junk file 6 years ago
gabime 25a702fc22 Update fmt.h 6 years ago
gabime ab178057db Fixed (maybe) #1348 6 years ago
gabime c44cf5a720 Removed extra space 6 years ago
gabime 98ca01bf2d Fix issue #1347 6 years ago
gabime 3a258ee5c9 Fix CMakeList for older versions of CMake 6 years ago
Gabi Melman 1586c4b0c7
Update appveyor.yml 6 years ago
Gabi Melman 9198e97401
Update appveyor.yml 6 years ago
Gabi Melman 346267c82f
Update appveyor.yml 6 years ago
Gabi Melman 529f72325f
Update appveyor.yml 6 years ago
Gabi Melman 1cf1209586
Update appveyor.yml 6 years ago
Gabi Melman 36774529a4
Update appveyor.yml 6 years ago
Gabi Melman 27dcb1008c
Update appveyor.yml 6 years ago
Gabi Melman e8a9c7b13e
Update appveyor.yml 6 years ago
Gabi Melman 7be59851d5
Update appveyor.yml 6 years ago
Gabi Melman 15cf9ec365
Update appveyor.yml 6 years ago
Gabi Melman c44c904161
Update appveyor.yml 6 years ago
Gabi Melman 9e3d8d1650
Update appveyor.yml 6 years ago
Gabi Melman 7b9668fe01
Update appveyor.yml 6 years ago
gabime 2334c48e02 Merge branch 'v1.x' of https://github.com/gabime/spdlog into v1.x 6 years ago
gabime afb949a417 CMake: - Allow non fatal security wanrnings for msvc 2015 and below 6 years ago
gabime c9bb85c91d Revert supress of warning 4996 under msvc 2015 6 years ago
Gabi Melman 13e1667d61
Update appveyor.yml 6 years ago
Gabi Melman 3c106c9cec
Update appveyor.yml 6 years ago
Gabi Melman 1988668d10
Update appveyor.yml 6 years ago
Gabi Melman 484d7f91e5
Added vs2017 to appveyor.yml 6 years ago
gabime 53d58f222f fix warning C4996 under vs2015 about std::copy in fmt 6 years ago
gabime d5a72b1eaf Fixed msvc compilation 6 years ago
gabime 6b5ebab6ae Fixed msvc compilation 6 years ago
gabime 8107df08a8 Bump bundled fmt to 6.1.1-rc 6 years ago
gabime dc29500931 version 1.5.0-rc 6 years ago