Commit Graph

177 Commits

Author SHA1 Message Date
gabime
1305663d99 make sure __cplusplus is defined under msvc 2021-03-12 15:10:15 +02:00
gabime
8f4efe57a2 make sure __cplusplus is defined under msvc 2021-03-12 15:09:35 +02:00
gabime
0613dbc4a2 Revert pr #1860 2021-03-04 23:52:50 +02:00
Gabi Melman
0ed0d69368
Update CMakeLists.txt 2021-03-04 23:24:02 +02:00
Romain Roffé
b9d2f2537b CMake: Add SPDLOG_STATIC_VCRT to choose static MSVC runtime 2021-03-04 20:14:18 +01:00
Issam E. Maghni
3eed64e5c4 CMake: Replace custom SPDLOG_BUILD_SHARED by standard BUILD_SHARED_LIBS 2021-02-26 16:26:50 -05:00
Prateek Chokse
2e008b319c Fix: prevents MSVC warning flags to propagate in CUDA 2021-02-12 14:13:51 +05:30
ryan-rsm-mckenzie
3d8f71c4d2 skip module mode when finding fmt 2020-12-27 01:37:12 -08:00
shimaowo
e99759fe45 Fix #1765 - Add SPDLOG_DISABLE_DEFAULT_LOGGER as a cmake option 2020-12-18 14:31:34 -08:00
gabime
231ca50700 clang-format 2020-09-26 15:34:05 +03:00
gabime
ccffb6ecd6 Fix #1581 2020-08-30 20:44:42 +03:00
gabime
63b5a1a4d8 Fix #1581 2020-08-30 20:44:04 +03:00
gabime
cd701761f9 clang-format 2020-08-26 00:10:05 +03:00
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.
2020-07-21 11:39:40 +03:00
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.
2020-07-20 22:03:50 +03:00
Leonid Pospelov
cf55e5d4f8 Cleanup options-related lines in CMakeLists.txt 2020-06-12 14:30:49 +03:00
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.
2020-06-10 22:56:53 +03:00
gabime
75c15e8028 Formatted cmake 2020-05-02 11:42:08 +03:00
gabime
ff0e430e46 Formatted cmake using cmake-format 2020-05-02 11:38:14 +03:00
Bruce Mitchener
937fe7e909 cmake: Fix tabs, whitespace at EOL. 2020-05-02 07:17:15 +07:00
Montellese
3e8be645d2 Set minimum version of fmt to 5.3.0
The used fmt::fmt target has been introduced with fmt 5.0.0.
2020-04-20 19:59:50 +02:00
gabime
854abdf5e6 Added cmake option SPDLOG_BUILD_ALL 2020-04-12 02:43:42 +03:00
Gabi Melman
1f7f1c1ffb
Update CMakeLists.txt 2020-04-10 16:39:59 +03:00
gabime
6440733002 Fixed cmake 2020-04-10 15:51:34 +03:00
gabime
02802af97f Renamed SPDLOG_ENABLE_WARNINGS to SPDLOG_BUILD_WARNINGS 2020-04-10 15:38:33 +03:00
gabime
9ba7fc94a5 Disable building tests by default in cmake 2020-04-10 15:35:41 +03:00
Gabi Melman
7d2337c6eb
Fix #1504 - Extra warnings OFF by default 2020-04-03 20:37:05 +03:00
FIlip Demski
132ec0a5fc Added an option to disable compiler warnings 2020-04-03 10:09:29 +02:00
gabime
c2b47430fb Enabled warning on examples only if built as part of spdlog 2020-04-01 00:23:04 +03:00
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.
2020-03-21 15:36:14 +01:00
gabime
7efdcc26fe CMakeLists.txt: use same policy as fmt 2020-03-15 18:41:34 +02:00
Gabi Melman
713feca582
Update CMakeLists.txt 2020-03-12 14:46:49 +02:00
Gabi Melman
26c20ed91d
Update CMakeLists.txt 2020-03-12 14:46:01 +02:00
Gabi Melman
e399249f31
Update CMakeLists.txt 2020-03-12 14:45:01 +02:00
Gabi Melman
b4a1b4b59a Updated verion.rc and CMakeLists.txt for dll build 2020-03-12 14:35:30 +02:00
Gabi Melman
e88bee49a6 Added version info to dll build 2020-03-12 14:29:23 +02:00
Martin Vejdarski
5b3a18319e fix SPDLOG_BUILD_SHARED cmake option 2020-03-11 03:05:44 +07:00
Martin Vejdarski
3b73278348 fix shared lib issues with bundled fmt 2020-03-11 00:39:42 +07:00
Martin Vejdarski
0ca2cb625e Add shared library support for Windows 2020-03-10 03:14:36 +07:00
gabime
c10be7eaec merge with v1.x 2020-02-26 18:13:13 +02:00
gabime
ffe272c165 Added SDPLOG_TIDY option to CMakeLists.txt instead of clang_tidy.sh 2020-02-25 18:49:28 +02:00
Dmytro Milinevskyi
af75985ec6 workaround for Unknown extension ".c" for file issue
http://www.grokit.ca/cnt/CMakeProblemsSolutions/
2020-02-16 19:57:49 +01:00
Vitaly Lipatov
1b4621962f CMakeLists.txt: put GNUInstallDirs after set project language 2020-01-30 14:51:42 +03:00
gabime
5bf99dfd61 Renamed loaders.cpp to cfg.cpp 2019-12-22 22:51:52 +02:00
gabime
1f8e9ad0fc renamed cfg namespace to loaders 2019-12-21 19:45:14 +02:00
gabime
f18e1fccfd cfg.cpp 2019-12-21 17:49:34 +02:00
gabime
ebaa16f403 CMakeLists.txt allow overriding the cpp standard to higher than 11 2019-12-12 23:52:22 +02:00
gabime
c44cf5a720 Removed extra space 2019-12-10 02:42:28 +02:00
gabime
98ca01bf2d Fix issue #1347 2019-12-10 02:40:06 +02:00
gabime
2698f54a9c Fix #1325. Added SPDLOG_FMT_EXTERNAL_HO option 2019-12-01 02:19:34 +02:00