Commit Graph

41 Commits (c65de3d689bfad4f80a656253979e843a356468d)

Author SHA1 Message Date
gabime 0613dbc4a2 Revert pr #1860 5 years ago
Christof Kaufmann 365e470a32 Add CPack debian package settings 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 22655d7554 Formatted cmake using cmake-format 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
Bruce Mitchener 559984b2fe Fix typos. 5 years ago
gabime 6440733002 Fixed cmake 5 years ago
gabime 02802af97f Renamed SPDLOG_ENABLE_WARNINGS to SPDLOG_BUILD_WARNINGS 5 years ago
FIlip Demski 132ec0a5fc Added an option to disable compiler warnings 5 years ago
Trond H Emaus 3e4df86ac0 create MSVC_OPTIONS list only if compiler is msvc 5 years ago
Trond H Emaus 7054cf7a35 replace MSVC_OPTIONS variable as list 5 years ago
Trond H Emaus 2a7fc9e30e add /WX mscv compiler option for only mscv compiler
clang on windows support both gcc and mscv style options. Clang.exe on windows
defaults to gcc style, which will result in /WX unknown compiler command.
This will set /WX if and only if the compiler is MSVC and greater than version 1900
5 years ago
Gabi Melman d43a17304e
Merge pull request #1484 from OlivierLDff/pch-support
Support for precompiled headers with SPDLOG_ENABLE_PCH
6 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
Gabi Melman ee54f54ced Use /W3 for mvsc 6 years ago
Gabi Melman b4a1b4b59a Updated verion.rc and CMakeLists.txt for dll build 6 years ago
Gabi Melman b309a88bea Update utils.cmake 6 years ago
Gabi Melman e88bee49a6 Added version info to dll build 6 years ago
Craig Tyler e47ecc1828 Updates supporting CPack RPM generation
Enable command line overrides of default settings
* CPACK_GENERATOR
* CPACK_PACKAGE_RELOCATABLE

Enables command line setting of generated RPM version attributes
* CPACK_RPM_PACKAGE_RELEASE
* CPACK_RPM_PACKAGE_ARCHITECTURE

Adds dependency on pkgconfig RPM when not generating relocatable RPM
6 years ago
gabime 3a258ee5c9 Fix CMakeList for older versions of CMake 6 years ago
gabime afb949a417 CMake: - Allow non fatal security wanrnings for msvc 2015 and below 6 years ago
gabime fb70eca0a3 CmakeLists.txt: add -pthread to pkg-config 6 years ago
gabime cf2bf488a2 CmakeLists.txt: Fixed package config generation 6 years ago
Craig Tyler 8627721533 Set additional CPACK variables for RPM generator
Sets the following when querying the generated RPM's info:

Group       : System Environment/Libraries
License     : MIT
URL         : https://github.com/gabime/spdlog
Summary     : Fast C++ logging library
Description :
Very fast, header-only/compiled, C++ logging library.
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 45a18a61c6 CmakeLists.txt: Added version-number and debug suffixes + SPDLOG_BUILD_SHARED property 6 years ago
gabime 8afe18f148 Minor improvement CMakeLists to use generators 6 years ago
gabime 8d3d06b7a0 Fixed version extraction in CMake 6 years ago
gabime cf64f2baca Fixed CMake address sanitizer 6 years ago
gabime 68a0193d95 CMake refactoring to functions 6 years ago
gabime 5743adc467 CMake use extract version from version.h 6 years ago
gabime d439f75491 Minor CMake cosmetic fix 6 years ago
gabime c559067f77 CMake refactoring 6 years ago
gabime 87eb569929 More updates to CMake (version support , cmake.in) 6 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
Daniel Chabrowski 49d663f6c8 Move tsan/asan flag management to cmake
Add sudo: required to fix asan builds
7 years ago
gabime 7885aa478c no streams 9 years ago
Nick White b7e3a103c3 Generate & Install pkg-config File 10 years ago
Ruslan Baratov c19d9759d5 Add CMake build 10 years ago