Commit Graph

278 Commits (08a9604a57a3cc161eaaeacf72f71b1d6894e14a)

Author SHA1 Message Date
gabime 425f137938 glob .cpp in cmakelists 2 years ago
gabime 98dacff8e0 Removed usages of SPDLOG_COMPILED_LIB macro 2 years ago
gabime cff3e27115 Removed usages of SPDLOG_COMPILED_LIB macro 2 years ago
gabime 6d520df916 Removed header only options 2 years ago
gabime 98415979d2 Validate that c++20 if SPDLOG_USE_FMT_FORMAT=ON 2 years ago
gabime 90e92438c8 clang format 2 years ago
gabime 1faeb5b6fa Minor cleanups 2 years ago
gabime 501e3480ca Require c++17 at mimumum 2 years ago
gabime 5993e78aac Removed SPDLOG_WCHAR_SUPPORT macro 2 years ago
gabime a38add8456 Removed SPDLOG_NO_TLS and updated cmake 2 years ago
gabime d94830814f Removed SPDLOG_WCHAR_TO_UTF8_SUPPORT 2 years ago
gabime 11ddcb2e91 Require c++20 standard 2 years ago
gabime b4004586e0 Fixed FMT_EXPORT to FMT_LIB_EXPORT in CMakeLists.txt 2 years ago
gabime a98d3ab0c7 clang format 2 years ago
gabime 7d0531b076 Removed policy_max from cmake_minimum_required(..) 2 years ago
albert-github 81ce5fcdb7
Remove obsolete part from cmake configuration files (#2871)
Updating minimum CMake version to 3.11
2 years ago
Robert Maynard 2312489bdc
Provide spdlog_header_only in build directory export (#2846)
Fixes #2678
2 years ago
moritz-h 371bc8ebe2
Set CMAKE_BUILD_TYPE only for single-config generators (#2839)
Thanks @moritz-h
2 years ago
gabime 64ed6b495c Revert "Fixed FMT_EXPORT to FMT_LIB_EXPORT in CMakeLists.txt"
This reverts commit c3fa8f60e2.
2 years ago
gabime c3fa8f60e2 Fixed FMT_EXPORT to FMT_LIB_EXPORT in CMakeLists.txt 2 years ago
gabime 1f61f5e019 clang format 2 years ago
gabime d1eb68154f If exceptions are disabled, disable them in the bundled fmt as well 2 years ago
Bailey Chittle 040874224b
setting the cmake standard to 20 when using std format (#2680) 2 years ago
Zeus James da14258533
Fix MinGW build issue on example (#2642)
* Fix MinGW build issue on example #2638

* Move the cmake change to example\CMakeLists.txt

* Update CMakeLists.txt on the example
3 years ago
Darby Payne edc51df1bd
Feature/add system includes option (#2575)
* Adding system includes option

* Adding system includes option
3 years ago
Charles Milette 4f80077339
Support compile-time format string checking with std::format (#2544)
* Support compile-time format string checking with std::format

* Fix pre-VS 17.5 compilation

* Fix compilation without wchar_t support

* What am I doing

* Bring back fmt optimization

* Move to_string_view to common.h

* Fix SPDLOG_CONSTEXPR_FUNC emitting duplicate symbol errors when building in C++11

* Also add inline on VS 2013

* Appender doesn't work on wide strings
3 years ago
gabime 3499dfeeb4 Bump bundled fmtlib to version 1.9.1 3 years ago
Puneet Matharu 7768c6271c Export targets to build directory so that it can be found at configure time. 3 years ago
Nigel Stewart 34f88d4382 cmake: SPDLOG_BUILD_PIC opt-in for CMAKE_POSITION_INDEPENDENT_CODE 3 years ago
Nigel Stewart de67ebdda1 cmake: set(CMAKE_POSITION_INDEPENDENT_CODE ON) for Linux static library purposes 3 years ago
Hector PHARAM fb3ddf749d Removed doc "(shared not supported in windows yet)" 3 years ago
cookcocck ca747c7572 Set c++20 when SPDLOG_USE_STD_FORMAT option is turned on 3 years ago
Alexander Shpilkin 876880fb3f
Reflect CMAKE_INSTALL_INCLUDEDIR in pkg-config 3 years ago
Alexander Shpilkin afb69071d5
Allow absolute CMAKE_INSTALL_LIBDIR 3 years ago
Jan Engelhardt 41efc971ad build: expand SOVERSION to not give false illusion of compatibility
Fixes #2369
3 years ago
Charless Milette d75de3d3b2 Add SPDLOG_USE_STD_FORMAT to target_compile_definitions 4 years ago
Charless Milette 44a4517e2b Support C++20 std::format as an alternative to fmtlib 4 years ago
Cristian Morales Vega ef540c1243 CMake: Stop explicitly setting CMP0077
The policy_max in cmake_minimum_required() already does that.
4 years ago
Cristian Morales Vega 8ffbc0f114 CMake: Specify "policy_max" 4 years ago
Dave Rigby 87095a9f1f Ensure exported package is relocatable
As per CMake's Importing and Exporting Guide[1],
configure_package_config_file() should be used for configuring the
package configuration file, not the regular configure_file() function.

This ensures that a spdlog package built on one system (with a given
directory tree) can be imported from a different system -
e.g. creating a pre-compiled spdlog package for use on different
systems.

[1]: https://cmake.org/cmake/help/git-stage/guide/importing-exporting/index.html#id8
4 years ago
gabime b85a666f72 Enabled parallel build under msvc 4 years ago
gabime e7e8b75a4c clang-format 4 years ago
gabime 7636f1f659 revert some changes made by mistake 4 years ago
gabime 1523c83650 Added fmt/compile.h bundled file 4 years ago
gabime 3eeced78b5 Removed some cmake wdev warnings 4 years ago
gabime 68aed6a5eb Fixed building under c++17 4 years ago
steven lunt 1bee3218b4 cleanup thanks to gabime 4 years ago
steven lunt 802eaadd2d add macros for overriding the individual level names 4 years ago
JB_12 181c22f798 Add support for CMake policy CMP0077 4 years ago
Chris Mc 65317eb019
Remove version requirement from fmt find_package
By introducing 'no module' support this inadvertently triggered the find_package to use the "full version" version selection.

From https://cmake.org/cmake/help/latest/command/find_package.html#version-selection:

> When the [version] argument is given, Config mode will only find a version of the package that claims compatibility with the requested version (see format specification).

FMT does not set this configuration https://github.com/fmtlib/fmt/blob/7.1.3/support/cmake/fmt-config.cmake.in... but regardless it would not be "any compatibility" based on version semantics.

Which causes this error. v1.8.2 builds perfectly fine.

```
CMake Error at CMakeLists.txt:181 (find_package):
  Could not find a configuration file for package "fmt" that is compatible
  with requested version "5.3.0".

  The following configuration files were considered but not accepted:

    /home/proj/build/e98598522b7c484d9220bffc7ec84474515facbc/fmt-config.cmake, version: 7.1.3
```
4 years ago
Ahmed Yarub Hani Al Nuaimi a2e28443f0
Add required libraries for Android CMake build 4 years ago
gabime 1305663d99 make sure __cplusplus is defined under msvc 5 years ago
gabime 8f4efe57a2 make sure __cplusplus is defined under msvc 5 years ago
gabime 0613dbc4a2 Revert pr #1860 5 years ago
Gabi Melman 0ed0d69368
Update CMakeLists.txt 5 years ago
Romain Roffé b9d2f2537b CMake: Add SPDLOG_STATIC_VCRT to choose static MSVC runtime 5 years ago
Issam E. Maghni 3eed64e5c4 CMake: Replace custom SPDLOG_BUILD_SHARED by standard BUILD_SHARED_LIBS 5 years ago
Prateek Chokse 2e008b319c Fix: prevents MSVC warning flags to propagate in CUDA 5 years ago
ryan-rsm-mckenzie 3d8f71c4d2 skip module mode when finding fmt 5 years ago
shimaowo e99759fe45 Fix #1765 - Add SPDLOG_DISABLE_DEFAULT_LOGGER as a cmake option 5 years ago
gabime 231ca50700 clang-format 5 years ago
gabime ccffb6ecd6 Fix #1581 5 years ago
gabime 63b5a1a4d8 Fix #1581 5 years ago
gabime cd701761f9 clang-format 5 years ago
Raul Tambre 76cdeb62e3 Don't enable C language in CMake
spdlog doesn't seem to actually require the C language.
Not enabling it results in a significant initial configure time speedup.
5 years ago
Raul Tambre ae9627c64c Raise CMake requirement to 3.13
* Reduces the range of possible version we'd need to test with.
* Enables newer policies reducing possible deprecation warnings from new policies.
* Allows removing some code for compatibility with older versions.
* Coincides with LLVM's bump to requiring CMake 3.13.
5 years ago
Leonid Pospelov cf55e5d4f8 Cleanup options-related lines in CMakeLists.txt 5 years ago
Konstantin Podsvirov fe97a03033 Fix shared library building failure on Windows with non MSVC
For example, now we can built shared library on Window with MinGW.

This changes improve features added in #1467.
5 years ago
gabime 75c15e8028 Formatted cmake 5 years ago
gabime ff0e430e46 Formatted cmake using cmake-format 5 years ago
Bruce Mitchener 937fe7e909 cmake: Fix tabs, whitespace at EOL. 5 years ago
Montellese 3e8be645d2 Set minimum version of fmt to 5.3.0
The used fmt::fmt target has been introduced with fmt 5.0.0.
5 years ago
gabime 854abdf5e6 Added cmake option SPDLOG_BUILD_ALL 5 years ago
Gabi Melman 1f7f1c1ffb
Update CMakeLists.txt 5 years ago
gabime 6440733002 Fixed cmake 5 years ago
gabime 02802af97f Renamed SPDLOG_ENABLE_WARNINGS to SPDLOG_BUILD_WARNINGS 5 years ago
gabime 9ba7fc94a5 Disable building tests by default in cmake 5 years ago
Gabi Melman 7d2337c6eb
Fix #1504 - Extra warnings OFF by default 5 years ago
FIlip Demski 132ec0a5fc Added an option to disable compiler warnings 5 years ago
gabime c2b47430fb Enabled warning on examples only if built as part of spdlog 5 years ago
Olivier LDff 21d41b8e81 Support for precompiled header for static & dynamic spdlog compilation.
Compilation is shorten by 2 on windows with msvc. Some improvement for gcc and appleclang. Add SPDLOG_ENABLE_PCH option to CMake that is defaulted to ON. This will enable precompiled header by default if supported. It can be disable if user have a conflict of any kind. Or to check that project is still compiling with CMake version that do not support precompiled header.
6 years ago
gabime 7efdcc26fe CMakeLists.txt: use same policy as fmt 6 years ago
Gabi Melman 713feca582
Update CMakeLists.txt 6 years ago
Gabi Melman 26c20ed91d
Update CMakeLists.txt 6 years ago
Gabi Melman e399249f31
Update CMakeLists.txt 6 years ago
Gabi Melman b4a1b4b59a Updated verion.rc and CMakeLists.txt for dll build 6 years ago
Gabi Melman e88bee49a6 Added version info to dll build 6 years ago
Martin Vejdarski 5b3a18319e fix SPDLOG_BUILD_SHARED cmake option 6 years ago
Martin Vejdarski 3b73278348 fix shared lib issues with bundled fmt 6 years ago
Martin Vejdarski 0ca2cb625e Add shared library support for Windows 6 years ago
gabime c10be7eaec merge with v1.x 6 years ago
gabime ffe272c165 Added SDPLOG_TIDY option to CMakeLists.txt instead of clang_tidy.sh 6 years ago
Dmytro Milinevskyi af75985ec6 workaround for `Unknown extension ".c" for file` issue
http://www.grokit.ca/cnt/CMakeProblemsSolutions/
6 years ago
Vitaly Lipatov 1b4621962f CMakeLists.txt: put GNUInstallDirs after set project language 6 years ago
gabime 5bf99dfd61 Renamed loaders.cpp to cfg.cpp 6 years ago
gabime 1f8e9ad0fc renamed cfg namespace to loaders 6 years ago
gabime f18e1fccfd cfg.cpp 6 years ago
gabime ebaa16f403 CMakeLists.txt allow overriding the cpp standard to higher than 11 6 years ago
gabime c44cf5a720 Removed extra space 6 years ago
gabime 98ca01bf2d Fix issue #1347 6 years ago