vitaut
4274f15f0d
Move test-specific stuff to test/CMakeLists.txt
2015-08-19 07:27:08 -07:00
Alex Martin
914b97859c
add CMake option to toggle tests (on by default)
2015-08-19 10:41:37 +02:00
vitaut
4150fa0f95
Fix formatting
2015-08-18 06:57:31 -07:00
Alex Martin
2161823559
add option to disable install
2015-08-17 18:48:16 +02:00
vitaut
a8d12ade1c
Append compile flags instead of overwriting
2015-08-04 07:46:15 -07:00
Radu Popescu
0affb23560
fixed #190 Argument shadowing and Clang pedantic support
2015-08-04 12:52:44 +02:00
vitaut
e498ffbb3d
Fix rpmlint warning about unused dependency on libm.so.6
2015-07-10 07:02:50 -07:00
vitaut
7859f81233
Don't use pthreads if they are not available
2015-06-29 07:34:30 -07:00
vitaut
958299dd7f
Install format.h to '<prefix>/include/cppformat'
...
not to '<prefix>/include'. Thanks to Eugene V. Lyubimkin for the patch.
2015-06-23 06:49:35 -07:00
vitaut
b88a17ad9e
libformat.{a.so} -> libcppformat.{a.so}
...
as suggested by Eugene V. Lyubimkin to make the name less generic
2015-06-23 06:40:22 -07:00
vitaut
a5757c86df
FMT_EXTRA_TESTS -> FMT_PEDANTIC and use it to control extra warnings
2015-05-12 07:35:29 -07:00
vitaut
5517c8962e
Use -std=gnu++11 if -std=c++11 is broken (for MinGW)
2015-05-12 07:13:12 -07:00
vitaut
684495c887
Add header files to gmock target
2015-05-12 06:53:35 -07:00
vitaut
640445fc48
FMT_CPP11_IO_H -> FMT_CPP11_UNISTD_H and enable all build configs
2015-05-11 19:48:30 -07:00
vitaut
e17b743141
Workaround a MinGW bug
2015-05-11 19:37:40 -07:00
vitaut
88f4be3d19
Merge branch 'master' of github.com:cppformat/cppformat
2015-04-18 19:16:16 -07:00
vitaut
c3ebcce89d
Make library install dir configurable via FMT_LIB_DIR CMake var
2015-04-18 19:15:36 -07:00
vitaut
0963fd0a4d
Workaround a bug in implementation of variadic templates in MSVC11
2015-04-12 14:33:11 -07:00
vitaut
cea64132a2
Detect tuple
2015-04-12 07:02:49 -07:00
vitaut
f6823221d3
Workaround broken tuple in MSVC11
2015-04-12 06:45:40 -07:00
vitaut
fb362ef880
Set .so version for libformat
2015-04-08 07:13:06 -07:00
vitaut
60405cf693
Use /W4 in format-test and only if FMT_EXTRA_TESTS is set
...
as (1) we don't want to force /W4 on users of the library and (2) some of
the warnings only show up when the formatting functions are used.
2015-03-28 17:29:12 -07:00
vitaut
9c75d0ccf7
Compile with /W4 in MSVC
2015-03-28 13:21:49 -07:00
vitaut
100bc30773
Reset CMAKE_REQUIRED_FLAGS
2015-03-19 07:59:12 -07:00
vitaut
df477565f8
Diagnose clang failures
2015-03-19 07:51:10 -07:00
vitaut
f49ab8e4a9
Detect broken cmath
2015-03-19 07:34:50 -07:00
vitaut
d99c49b970
Merge branch 'master' of github.com:cppformat/cppformat
2015-03-17 07:57:39 -07:00
vitaut
8ed6031457
Add a comment describing the use of -std=c++11
2015-03-17 07:56:55 -07:00
Magnus Bjerke Vik
b739ec893f
Fix CMake FMT_INITIALIZER_LIST check failing because of wrong include name.
2015-03-17 10:15:54 +01:00
Victor Zverovich
2d80bcc1cb
Bump version
2015-03-06 08:30:30 -08:00
Victor Zverovich
1244f3d58f
Move biicode.cmake to support/cmake
2015-03-01 17:00:53 -08:00
Victor Zverovich
07754c047c
Place executables in the bin dir
2015-03-01 16:07:18 -08:00
Victor Zverovich
4df5d10e3c
Check if initializer lists are supported
2015-03-01 14:14:06 -08:00
Trent Houliston
4da1fa391e
Add an install command to the cmake file (to allow make install)
2015-02-24 17:31:30 +11:00
Victor Zverovich
2b35c9e8e7
Move CMake files to support
2015-02-21 16:02:44 -08:00
Victor Zverovich
a92205be9c
Remove unused policy setting
2015-02-17 14:42:11 -08:00
carterl
43b9fefbd2
Use static_assert more actively
2015-02-15 03:55:21 +01:00
Carter Li
2eef573656
Use explicitly deleted functions to make types non-copyable
2015-02-14 23:22:14 +08:00
Victor Zverovich
f77350f8fa
Disable unnecessary CMake check and comment
2015-02-14 06:18:19 -08:00
Carter Li
e2583ab5f3
Use throw() when noexcept is not supported
2015-02-14 09:58:29 +08:00
Victor Zverovich
c643fdae53
Fix CMake warning
2015-02-12 15:55:21 -08:00
Victor Zverovich
503e87f153
Report CMake version for debugging
2015-02-12 11:41:45 -08:00
Victor Zverovich
3822241d99
Use policy check instead of CMake version check
2015-02-12 11:27:55 -08:00
Victor Zverovich
e392eea160
Fix CMake warning
2015-02-12 10:12:26 -08:00
Victor Zverovich
8bd1953094
Minor changes to follow C++ Format's coding conventions
2015-02-11 14:16:22 -08:00
franchuti688
7b77eb61b5
adapted to biicode via biicode.conf, ignore.bii and CMakeLists.txt; mixed Travis
...
(original and biicode building)
2015-02-11 22:52:00 +01:00
Victor Zverovich
502d2ede8a
Bump version
2015-02-07 08:53:30 -08:00
Victor Zverovich
afba2422ae
Fix packaging
2015-02-05 08:50:47 -08:00
Victor Zverovich
58683f5376
Version 1.0 🎆
2015-02-05 08:42:25 -08:00
Victor Zverovich
fdecd5b40f
Remove FMT_SHARED in favor of BUILD_SHARED_LIBS
2014-12-19 07:37:49 -08:00
Victor Zverovich
f9fc8fd09d
Fix -Wshadow warnings
2014-12-09 07:45:54 -08:00
Victor Zverovich
833fd47f83
Change the next version number to 0.12.0
2014-10-06 08:49:33 -07:00
Victor Zverovich
b6afd93879
Split long line
2014-10-06 08:20:52 -07:00
Victor Zverovich
e1c046c984
Fix open check
2014-09-29 09:27:32 -07:00
Victor Zverovich
d1ded569ff
Separate memory management and formatting
...
Array is split into an abstract Buffer class and a concrete MemoryBuffer class. BasicWriter now does all memory allocation through a Buffer object. Subclasses of BasicWriter may use different buffer types. The new BasicMemoryBuffer class uses the default MemoryBuffer.
2014-09-29 08:48:16 -07:00
Victor Zverovich
70205edd6e
Fix build with ancient CMake
2014-09-18 09:29:51 -07:00
Victor Zverovich
a734f67978
Check if variadic templates are working
2014-09-18 09:18:18 -07:00
Victor Zverovich
a4998accf6
Fix travis build
2014-09-17 08:26:07 -07:00
Victor Zverovich
c76b22405d
Replace GTest with GMock (includes GTest)
2014-09-17 08:01:42 -07:00
Victor Zverovich
6cd9be2c06
Bump version.
2014-09-12 08:29:38 -07:00
Victor Zverovich
034aedb6d4
Bump version.
2014-08-21 08:49:58 -07:00
Victor Zverovich
56fb75c2ec
Rearrange tests to simplify inclusion in other projects.
2014-08-09 09:04:38 -07:00
Victor Zverovich
6a37965710
Replace gtest with fused version.
2014-08-07 06:47:51 -07:00
Victor Zverovich
d91a66e1c5
Read version from CMakeLists.txt instead of using configure for compatibility with ReadTheDocs.
2014-07-26 21:05:42 -07:00
Victor Zverovich
eb04e9abd3
Report build type.
2014-07-10 09:14:24 -07:00
Victor Zverovich
ccf1dbb139
Bump version.
2014-07-01 07:19:42 -07:00
Victor Zverovich
08e2dffa86
Add macro test.
2014-06-25 07:50:33 -07:00
Victor Zverovich
e7b6896c43
Fix tests.
2014-06-09 09:57:34 -07:00
Victor Zverovich
eaa89e23d7
Put File, BufferedFile & ErrorCode in the fmt namespace.
2014-06-09 09:07:27 -07:00
Victor Zverovich
bf8b29fbe7
Add initial support for printf format specifications.
2014-06-06 06:38:37 -07:00
Victor Zverovich
7042d14341
Disable extra tests unless FMT_EXTRA_TESTS is set.
2014-06-06 06:35:28 -07:00
Victor Zverovich
23eb9b4f4c
Move speed-test to benchmarks.
2014-05-23 07:24:23 -07:00
Victor Zverovich
27c7216e01
Add an option to build cppformat as a shared library.
2014-05-22 08:45:30 -07:00
Victor Zverovich
7aa9eaea48
Update benchmarks.
2014-05-22 08:17:30 -07:00
Victor Zverovich
0e32544855
Update benchmark.
2014-05-20 07:10:46 -07:00
Victor Zverovich
ba176c3cb3
Fix handling of -std=c++11 flag.
2014-05-19 08:02:44 -07:00
Victor Zverovich
1dd0e3046b
Fix tests.
2014-05-18 10:03:28 -07:00
Victor Zverovich
d758dbb33a
Add tests.
2014-05-15 07:45:44 -07:00
Victor Zverovich
cb389f9a09
Ignore generated files.
2014-05-13 09:28:53 -07:00
Victor Zverovich
191c2011f2
Don't include sphinx in the package.
2014-05-13 09:00:21 -07:00
Victor Zverovich
83e1658109
Test compilation without -std=c++11.
2014-05-05 17:39:01 -07:00
Victor Zverovich
1a2d7be3f5
Implement EXPECT_STDOUT and EXPECT_STDERR using pipes.
2014-05-03 09:48:54 -07:00
Victor Zverovich
dd0120c189
Use gtest's own tuple with clang.
2014-05-02 08:13:17 -07:00
Victor Zverovich
f912eace9e
Move compile test to the end.
2014-05-02 07:15:55 -07:00
Victor Zverovich
61d5ebc0af
Test EXPECT_THROW_MSG.
2014-05-02 06:33:21 -07:00
Victor Zverovich
79226fe703
Use DLL runtime for gtest.
2014-05-01 20:06:19 -07:00
Victor Zverovich
7bde2b3c25
Replace a fused version of gtest with a stripped down one.
2014-05-01 17:14:35 -07:00
Victor Zverovich
9cf43ccdad
Move tests to the test dir.
2014-05-01 16:49:08 -07:00
Victor Zverovich
089974eb92
Fix compiler flags check.
2014-04-30 07:36:47 -07:00
Victor Zverovich
3c3c846908
Check for -std=c++0x flag if -std=c++11 is not available.
2014-04-29 07:12:06 -07:00
Victor Zverovich
bfc8615d28
Update benchmarks.
2014-04-29 06:26:30 -07:00
Victor Zverovich
60c92a7431
Get rid of MSB3644 warnings.
2014-04-29 05:56:47 -07:00
Victor Zverovich
8641461c98
More tests.
2014-04-27 06:56:12 -07:00
Victor Zverovich
cb316b13b1
Add header to the project.
2014-04-23 17:52:13 -07:00
Victor Zverovich
269c3bab7e
Generate a script that configures build environment and runs msbuild.
2014-04-23 17:21:18 -07:00
Victor Zverovich
f4c31ccd59
Include gtest in the package and bump version.
2014-04-17 21:17:34 -07:00
Victor Zverovich
5e3e7fe7d3
Add a fused version of gtest.
2014-04-17 20:59:06 -07:00
Victor Zverovich
c22c26ed3d
Update project name, copyright and version.
2014-04-17 08:55:02 -07:00
Victor Zverovich
2e8c75269a
Update the package name.
2014-04-15 07:35:28 -07:00
Victor Zverovich
10b2fe0f27
Implement packaging.
2014-04-14 12:54:03 -07:00
Victor Zverovich
be17d14544
Simplify compile tests.
2014-01-07 09:50:36 -08:00
Victor Zverovich
9bf11d057c
Add compile error tests.
2014-01-02 11:31:53 -08:00
Victor Zverovich
1106004e88
Find Google profiler.
2013-12-21 10:31:06 -08:00
Victor Zverovich
bab5e98889
Add profiling support.
2013-12-21 09:36:15 -08:00
Victor Zverovich
2883163787
Test compilation with default flags.
2013-12-09 17:47:07 -08:00
Victor Zverovich
b697a7d6f9
Only use GTest's own tuple on clang.
2013-11-15 14:21:55 -08:00
Victor Zverovich
cd882b547e
Fix clang build.
2013-11-15 14:16:42 -08:00
Victor Zverovich
9d97bb7cd0
Add Boost to include directories.
2013-11-15 14:13:29 -08:00
Victor Zverovich
f782c2b1a8
Fix build on Mac.
2013-11-15 14:02:14 -08:00
Victor Zverovich
06dda99d7a
Check for boost.
2013-09-08 14:39:34 -07:00
Victor Zverovich
54c3ed92b6
Add -std=c++11 flag only if supported by compiler.
2013-09-07 14:54:26 -07:00
Victor Zverovich
3937644a8d
Enable C++11 if possible.
2013-09-07 13:04:45 -07:00
Victor Zverovich
8e37936c77
Fix paths.
2013-09-07 13:03:03 -07:00
Victor Zverovich
99c5f8e00b
Move the benchmarks to format-benchmark.
2013-09-07 12:37:18 -07:00
Victor Zverovich
a47e7ac0bc
Link with libformat instead of including format.cc in every file.
2013-09-06 20:34:23 -07:00
Victor Zverovich
75343c7e12
Add format to int_generator tests.
2012-12-21 22:50:42 -08:00
Victor Zverovich
f925daa0fe
Disable "secure" warnings.
2012-12-21 16:07:33 -08:00
Victor Zverovich
382e25ec3e
Add doc/ to cmake build.
2012-12-18 08:44:00 -08:00
Victor Zverovich
0c816551ad
Get rid of duplicate main.
2012-12-16 15:25:40 -08:00
Victor Zverovich
414caae4d3
Detect boost.
2012-12-12 11:32:01 -08:00
Victor Zverovich
771746bd7e
Set gtest_force_shared_crt, take 2.
2012-12-12 10:37:27 -08:00
Victor Zverovich
f4f35cd1af
Rollback the last change and set gtest_force_shared_crt instead.
2012-12-12 10:11:23 -08:00
Victor Zverovich
25d61171e8
Add format.cc to the test instead of linking with format library to avoid link errors with MSVC.
2012-12-12 10:03:05 -08:00
Victor Zverovich
33bb6eef5a
Enable and fix warnings.
2012-12-11 21:47:05 -08:00
Victor Zverovich
c50f94ac04
Separate optimized and debug bloat tests. Add Benchmark section to the README.
2012-12-07 13:20:50 -08:00
Victor Zverovich
d5925dc3cb
Add dependencies.
2012-12-07 12:25:49 -08:00
Victor Zverovich
dc533040fa
Add bloat tests from tinyformat.
2012-12-07 12:04:32 -08:00
Victor Zverovich
a23a8d134e
Fix setting the default build type.
2012-12-07 10:04:01 -08:00
Victor Zverovich
5e0765975c
Add format library to the tests.
2012-12-07 10:01:05 -08:00
Victor Zverovich
6767965583
Set the default build type to Release. Integrate speed test from tinyformat.
2012-12-07 09:41:02 -08:00
Victor Zverovich
afe8b1c3be
Document why we compile Google Test ourselves.
2012-12-07 09:11:03 -08:00
Victor Zverovich
cb99919912
Add tests.
2012-12-07 09:02:15 -08:00
Victor Zverovich
15755cfa69
Add CMake build script
2012-12-07 08:33:00 -08:00