Commit Graph

31 Commits

Author SHA1 Message Date
FIlip Demski
132ec0a5fc Added an option to disable compiler warnings 2020-04-03 10:09:29 +02:00
Trond H Emaus
3e4df86ac0 create MSVC_OPTIONS list only if compiler is msvc 2020-03-28 10:26:32 +01:00
Trond H Emaus
7054cf7a35 replace MSVC_OPTIONS variable as list 2020-03-28 00:03:59 +01:00
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
2020-03-27 19:59:22 +01:00
Gabi Melman
d43a17304e
Merge pull request #1484 from OlivierLDff/pch-support
Support for precompiled headers with SPDLOG_ENABLE_PCH
2020-03-21 17:51:50 +02: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
Gabi Melman
ee54f54ced Use /W3 for mvsc 2020-03-20 13:56:54 +02:00
Gabi Melman
b4a1b4b59a Updated verion.rc and CMakeLists.txt for dll build 2020-03-12 14:35:30 +02:00
Gabi Melman
b309a88bea Update utils.cmake 2020-03-12 14:29:39 +02:00
Gabi Melman
e88bee49a6 Added version info to dll build 2020-03-12 14:29:23 +02:00
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
2020-02-20 14:52:56 -08:00
gabime
3a258ee5c9 Fix CMakeList for older versions of CMake 2019-12-08 14:14:57 +02:00
gabime
afb949a417 CMake: - Allow non fatal security wanrnings for msvc 2015 and below 2019-12-05 17:44:38 +02:00
gabime
fb70eca0a3 CmakeLists.txt: add -pthread to pkg-config 2019-10-04 21:56:17 +03:00
gabime
cf2bf488a2 CmakeLists.txt: Fixed package config generation 2019-10-04 21:49:20 +03:00
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.
2019-09-27 09:40:09 -07:00
orbea
588910129c cmake: Add a new spdlog.pc pkgconfig file.
Fixes https://github.com/gabime/spdlog/issues/1237.
2019-09-22 19:04:29 -07:00
gabime
45a18a61c6 CmakeLists.txt: Added version-number and debug suffixes + SPDLOG_BUILD_SHARED property 2019-09-08 00:42:23 +03:00
gabime
8afe18f148 Minor improvement CMakeLists to use generators 2019-06-10 20:10:28 +03:00
gabime
8d3d06b7a0 Fixed version extraction in CMake 2019-06-10 19:53:39 +03:00
gabime
cf64f2baca Fixed CMake address sanitizer 2019-06-10 18:32:10 +03:00
gabime
68a0193d95 CMake refactoring to functions 2019-06-10 18:09:36 +03:00
gabime
5743adc467 CMake use extract version from version.h 2019-05-29 15:15:35 +03:00
gabime
d439f75491 Minor CMake cosmetic fix 2019-05-29 00:17:38 +03:00
gabime
c559067f77 CMake refactoring 2019-05-29 00:13:02 +03:00
gabime
87eb569929 More updates to CMake (version support , cmake.in) 2019-05-19 15:47:49 +03:00
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.
2018-12-17 10:18:16 -06:00
Daniel Chabrowski
49d663f6c8 Move tsan/asan flag management to cmake
Add sudo: required to fix asan builds
2018-08-12 17:11:56 +02:00
gabime
7885aa478c no streams 2016-07-08 17:50:13 +03:00
Nick White
b7e3a103c3 Generate & Install pkg-config File 2016-04-14 20:47:57 +01:00
Ruslan Baratov
c19d9759d5 Add CMake build 2015-09-10 23:22:18 +03:00