Commit Graph

276 Commits (ed6919bf8e36a6af7dbe24c261e9f6fb3fa68d19)

Author SHA1 Message Date
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
gabime 2698f54a9c Fix #1325. Added SPDLOG_FMT_EXTERNAL_HO option 6 years ago
gabime 3f30000088 comment 6 years ago
gabime e6ce39f76e comment 6 years ago
gabime 10116b7717 Removed SPDLOG_NO_DATETIME option 6 years ago
gabime 18edb8bd63 Added tweakme options to CMakeLists.txt 6 years ago
gabime 4858d7e454 Fix #1274 6 years ago
gabime fbb3f41dff Fix #1273 6 years ago
Florian Pigorsch 4aad51a352 Fix some spelling errors.
casese -> cases (1)
chache -> cache (1)
cirucal -> circular (1)
dependecy -> dependency (1)
detrmine -> determine (2)
eavluate -> evaluate (1)
exertnal -> external (1)
ony -> only (1)
registation -> registration (3)
registring -> registering (2)
regsistration -> registration (3)
seperate -> separate (2)
wit -> with (1)
withe -> with (1)
6 years ago
gabime 1549ff12f1 Replace STRING(PREPEND ..) in CMakeLists.txt to support older CMake versions 6 years ago
gabime cf2bf488a2 CmakeLists.txt: Fixed package config generation 6 years ago
Matthias Schoepfer 4021e5eea9 CMakeLists.txt: removed spdlog subdir from library install
The library gets installed into ${CMAKE_INSTALL_LIBDIR}/spdlog, which
is for unix / linux a rather strange place, hence, put it where the linker
is more likely to find it.

Signed-off-by: Matthias Schoepfer <matthias.schoepfer@ithinx.io>
6 years ago
gabime 1add9c9a02 Added SPDLOG_WCHAR_FILENAMES options to CMake 6 years ago
Gabi Melman 4da95066a0
Merge pull request #1241 from orbea/fmt
cmake: Only install fmt headers when SPDLOG_FMT_EXTERNAL is not defined.
6 years ago
orbea 920dd078f3 cmake: Only install fmt headers when SPDLOG_FMT_EXTERNAL is not defined. 6 years ago
orbea 588910129c cmake: Add a new spdlog.pc pkgconfig file.
Fixes https://github.com/gabime/spdlog/issues/1237.
6 years ago
gabime c1c23d1e7b Revert pull #1228 6 years ago
gabime e52672c263 Fixed CMakeLists.txt 6 years ago
Christian c87882e82f added version check 6 years ago
Christian bd4301b2c1 added arch_independent option 6 years ago
gabime 45a18a61c6 CmakeLists.txt: Added version-number and debug suffixes + SPDLOG_BUILD_SHARED property 6 years ago
gabime dae4f9fef6 split spdlog.cpp to multiple .cpp files 6 years ago
gabime 7dc378e296 Update CMakeLists.txt 6 years ago
gabime 0335e3fcc0 Print error and abort instead of throw if SPDLOG_NO_EXEPTIONS is defined 6 years ago
gabime b0a25f0183 wip - no-exceptions support 6 years ago
gabime a8b5e3da29 Removed unneeded test targets from CMakeLists 6 years ago
gabime 8cc0997f79 Added SPDLOG_WCHAR_SUPPORT options to CMake under windows 6 years ago
gabime 8dc3a66688 Fix #1180 6 years ago
gabime 121fc0a273 Minor update to CMakelists 6 years ago
gabime 4d9281018f Minor update to CMakelists 6 years ago
gabime 330d491eba Enable again test building by default in cmake 6 years ago
gabime 07d753176f Update CMakeLists.txt to not build tests by default 6 years ago
gabime bb0f3839c1 Updated CMake options and defaults 6 years ago
gabime 8970fd5d2f CMake cosmetic 6 years ago
gabime 67d5f65507 CMake support for building shared lib (not for win32) 6 years ago
gabime 7d678be07a CMake - turn off examples by default 6 years ago
gabime cf64f2baca Fixed CMake address sanitizer 6 years ago
gabime 68a0193d95 CMake refactoring to functions 6 years ago
Jan Kundrát c60f790793 Do not impose -Wextra -Wconversion etc on library users
I had to nuke the flags targetting spdlog_header_only because in CMake,
an interface target apparently really only supports the INTERFACE
option.

As I am only targeting Linux, the MSVC changes rely on spdlog's CI and
manual code review. That said, it makes sense to also stop forcing these
options on third party code, assuming that the CMake installations work
the same on Windows.

Fixes #1104
6 years ago
gabime 5743adc467 CMake use extract version from version.h 6 years ago
gabime 76fc166e11 CMakeLists.txt minor improvments 6 years ago
gabime d439f75491 Minor CMake cosmetic fix 6 years ago
gabime c559067f77 CMake refactoring 6 years ago
gabime 30bd80bd85 CMake improvements 6 years ago
gabime 54f1941691 Fixed target_compile_options in cmake 6 years ago
gabime 6636ae6e63 CmakeLists.txt compiler warnings 6 years ago
gabime 2e75f42c69 Install using GNUInstallDirs in cmake 6 years ago
gabime 65576707bf Removed shared_lib option (not supported by windwos) and remove example and test from default build 6 years ago
gabime 6ec8a06a09 Fixed Cmake under windows and disable bench build from default config 6 years ago
gabime 1ef80d6330 Updated CMakeLists.txt 6 years ago
Gabi Melman a532a072ce
Update CMakeLists.txt 6 years ago
gabime 87eb569929 More updates to CMake (version support , cmake.in) 6 years ago
David Zemon dd2f293f33 Clean up CMake a bit more 6 years ago
David Zemon 24e4f0aa87 Allowed overriding of `SPDLOG_MASTER_PROJECT` to better support Conan 6 years ago
David Zemon 6fe899af10 Set Threads::Threads dependency on spdlog libs - don't make user do it 6 years ago
David Zemon b021be29e5 Add support for .tar.gz and .zip packages via CPack 6 years ago
David Zemon 55e7844ca0 Remove the namespaced
Namespaces are good for avoiding collisions, but since the
non-namespaced targets still exist, it does no good to add the
namespaced targets on top.
6 years ago
David Zemon 8dd85285e7 Allow user to choose between static or shared library 6 years ago
gabime b3fe4b54c8 Fixed CMakeLists.txt 6 years ago
gabime 872ea6bf09 Deleted redundant Make files and solutions 6 years ago
gabime 32fb9d51b9 Cmake update to support both header-only and static 6 years ago
gabime ee0fdf016a Minore cmake fix 6 years ago
gabime 8b244ca988 Moved format.cpp into spdlog.cpp - this way only one src file is needed 6 years ago
gabime 6bcb422c80 clang format and SPLDOG_HEADER_ONLY macro 6 years ago
gabime 005450ff13 wip 6 years ago
gabime c031ae2aab Cmake message 6 years ago
gabime 29c949ab03 static lib by default 6 years ago
gabime 576e389788 static lib by default and tests 6 years ago
gabime 7b15a3d345 wip cmake 6 years ago
gabime eedb43d756 wip cmake 6 years ago
gabime 338125b93a wip cmake 6 years ago
gabime 3ecc3ab798 wip cmake 6 years ago
gabime de1cdb2dbe wip cmake 6 years ago
gabime c9887874bc wip cmake 6 years ago
gabime 69fcaf14e5 wip static-lib 6 years ago
gabime f414198fee Cmake fix 6 years ago
gabime c1c2ff2d07 wip 6 years ago
gabime ff89f1476d Restored error_handler as std::function 6 years ago
gabime baefe0b3f6 wip 6 years ago
gabime 7e29c48379 removed spdlite 6 years ago
gabime f36be4d5e4 Moved lite source to folders| 7 years ago
gabime 57a312cb1a lite wip 7 years ago
Martin Green 9fca0b20f0 Add CMake option for conditional installation 7 years ago
Francois Chabot 734af31c13
Allow the inclusion of an external fmtlib as as sub_directory 7 years ago
Sergey Kovalevich 90a299f424 CMAKE_BINARY_DIR -> CMAKE_CURRENT_BINARY_DIR 7 years ago
Pius Raeder a29e518cfe Disable building benchmarks by default
Building the benchmarks requires google-benchmark to be installed which is
not the case for most of the build systems. The option now has a tiny
hint what the requirement is and where to get it.

closes #975
7 years ago
gabime a7148b718e Version 1.3.1 7 years ago
Carsten Neumann 084bc72d90 Fix handling of external fmt lib
Using an external fmt lib should cause the spdlog::spdlog target to have
a dependency on fmt lib - so that a consuming project does not need
to call find_package(fmt) and target_link_libraries(... fmt::fmt).

To this end a new cmake option SPDLOG_FMT_EXTERNAL is introduced which
makes spdlog depend on fmt lib and defines the SPDLOG_FMT_EXTERNAL macro
to avoid using the bundled fmt lib. The value of SPDLOG_FMT_EXTERNAL is
also stored in the installed spdlogConfig.cmake and if it is ON
find_dependency() is used to ensure the fmt::fmt target is imported.
7 years ago
gabime 7275fb6f52 simplify SPDLOG_BUILD_TESTS Cmake option 7 years ago
David P. Sicilia 85b4d7c8d6 CMake: include(CTest) only when building tests.
This is needed in order to support usage of this library as a
subdirectory in a parent project.  In that situation, prior
to this change, the inclusion of CTest would unconditionally
enable BUILD_TESTING which would then bleed into other parts
of the project.

Also added some comments explaining how this logic works.
7 years ago
gabime b368d18b0f Added default logger API 7 years ago
gabime c83c9a3193 Version 1.2.0 7 years ago
Sergey Alexandrov 75925762e8
Change the default value for SPDLOG_BUILD_xxx
The value based on whether spdlog is used as a third-party dependency or
as a standalone project. If spdlog is included through add_subdirectory,
the tests/examples/benchmarsk are disabled by default, and if spdlog is
configured standalone, then they are enabled by default.
7 years ago
gabime 0758b39061 Stop compilation on first error 7 years ago
gabime a58d7594cb Fixed issue #798 and added -Wconversion compiler flag to build 7 years ago
gabime b6b9d835c5 Version 1.1.0 7 years ago
gabime ebea09c8b4 Added pedantic flag to compiler in cmake 7 years ago
Daniel Chabrowski fb37585bc1 Little cmake and tests refactor
Change from spdlog_ex to const spdlog_ex& got rid of the GCC8 warning.
7 years ago
gabime 8008d7fe53 Replace emplace_back with push_back in pattern_formatter 7 years ago
gabime da30e2ef18 Improved CMakeLists and added bench 7 years ago
Daniel Chabrowski 49d663f6c8 Move tsan/asan flag management to cmake
Add sudo: required to fix asan builds
7 years ago
Daniel Chabrowski 7e32ccbd8f Modify travis-ci, fix issues
Added:
* Release/Debug job for gcc 7 and clang 3.5
* Debug asan gcc 7 job
* Debug tsan gcc 7 job
* Disabled extensions
* Added a spdlog::spdlog alias for tests

Removed:
* Valgrind workaround, the current version is 3.10.1
* install_libcxx
* Makefiles

Fixed:
* examples build
* multisink build

Workarounds:
* gcc7 with tsan and asan needs gold linker, otherwise build
  fails becase of unrecognized option '--push-state'
7 years ago
Gabi Melman bbff8abf58
Update CMakeLists.txt 7 years ago