Commit Graph

74 Commits (b021be29e56a6b539c067a247904d54d051ca492)

Author SHA1 Message Date
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
gabime 8ee7b772a9 Added -O3 flag to CMakeLists.txt 8 years ago
Daniel Chabrowski 646a140ed4 Specify CXX language explicitly in CMake
Marking project as CXX will disable detecting C compiler and other checks.
Removed 'INCLUDES DESTINATION' as it made the include path appear doubled.
8 years ago