Commit Graph
2259 Commits
Author SHA1 Message Date
Mario Werner 620f999e80 ignore the current build directory when packaging
This makes sure that the current build directory is not packaged
with the regular source tree when `make package_source` is used.
2016-04-06 09:49:34 +02:00
Mario Werner dcbb6b1e4d make the install location for the generated cmake files configurable
By default the cmake files are installed to "<prefix>/lib/cmake/cppformat".
This can now be customized using the `FMT_CMAKE_DIR` cache variable.
Valid paths are documented in the cmake manual [1].

e.g., install the cmake files to "<prefix>/share/cmake/cppformat"
```
cmake -DFMT_CMAKE_DIR=share/cmake/cppformat <path-to-source>
```

Tip: Try `make package` to examine the result.

[1] https://cmake.org/cmake/help/v3.0/command/find_package.html
2016-04-06 09:33:13 +02:00
vitaut a99891e7a5 Use a mock to test custom argument formatter 2016-03-19 07:36:28 -07:00
vitaut 52f89065e1 Make argument formatter customizable 2016-03-19 07:20:31 -07:00
vitaut 9ffe98c00e Fix/suppress MSVC warnings 2016-03-19 06:39:33 -07:00
vitaut 63d7f3d116 Don't check for C++11 features if C++11 support is disabled 2016-03-18 08:10:06 -07:00
vitaut c052cf11b9 Improve coding style consistency 2016-03-18 07:59:04 -07:00
vitaut 0c901efb16 Use less strict pedantic flags for tests because of GMock (#291) 2016-03-18 07:52:24 -07:00
vitaut 030cccfeef Update changelog 2016-03-17 07:28:21 -07:00
vitaut 062e3bd757 Add a branch option to the release script 2016-03-13 10:27:15 -07:00
Victor Zverovich 5174b8ca28 Update README.rst 2016-03-10 10:52:21 -08:00
Victor Zverovich 090de29ddf Update README.rst 2016-03-10 10:51:52 -08:00
vitaut 59607f5e99 Fix warnings on GCC 4.6.3 2016-03-09 07:47:08 -08:00
vitaut 763d1fe6a3 Suppress warnings in Google Mock 2016-03-08 07:36:22 -08:00
vitaut 7d6622942c Break a long line 2016-03-08 06:55:41 -08:00
vitaut 0867c1b447 Test writing to ostream 2016-03-08 06:47:53 -08:00
Victor Zverovich 6883d6e724 Merge pull request #285 from mwinterb/winerror_winu
Changed format_windows_error to not need LocalFree
2016-03-06 06:55:37 -08:00
Michael Winterberg 8f4b8edb8b Added test of error code that forces the insufficient buffer code path. 2016-03-04 17:47:37 -08:00
vitaut 5324d385c0 Fix a MSVC warning 2016-03-04 06:44:12 -08:00
Victor Zverovich fc505b5447 Merge pull request #286 from Naios/master
Define FMT_NOEXCEPT empty when exceptions are disabled
2016-03-03 09:54:27 -08:00
Denis Blank 3c3d6b3d2a Define FMT_NOEXCEPT empty when exceptions are disabled
* Fixes warnings about disabled exception support in MSVC
2016-03-03 17:23:25 +01:00
Michael Winterberg 2a05a87fe7 Changed format_windows_error to not need LocalFree
This is for non-'Desktop' applications that have a
more limited collection of functions.
2016-03-02 17:35:34 -08:00
vitaut 3ecad55910 Fix sign conversion warnings 2016-03-02 07:53:14 -08:00
vitaut d929fdeb9b Fix clang warnings 2016-03-02 07:02:57 -08:00
vitaut 9d577cae6f Fix handling of negative error codes in format_error_code 2016-03-02 07:01:21 -08:00
Victor Zverovich 6e820841d4 Add mongo_smasher to the list of projects 2016-03-01 14:28:52 -08:00
vitaut 82d6813e7c Fix a bunch of Clang sign-conversion warnings 2016-03-01 08:12:29 -08:00
Victor Zverovich 2f12a32c20 Merge pull request #277 from PSPDFKit-labs/fix-switch-fallthrough
Fix switch fall-through warning
2016-02-23 10:28:17 -08:00
Patrik Weiskircher 6178bc6f8e Fix switch fall-through warning
Clang with `-Wimplicit-fallthrough` enabled shows a warning here without
the break.
2016-02-23 12:59:26 -05:00
vitaut 209748f128 Workaround a bug in Apple LLVM version 4.2 of clang (#276) 2016-02-23 07:27:01 -08:00
vitaut f64ea6235f Include xlocale.h for LC_NUMERIC_MASK on OS X 2016-02-19 13:30:18 -08:00
vitaut 80d288b146 Correct comment 2016-02-11 07:25:00 -08:00
vitaut 6500f161f7 Fix a warning in freelocale mock (#274) 2016-02-11 06:55:53 -08:00
vitaut abd93d824a Move gmock into test/ 2016-02-10 07:16:49 -08:00
vitaut 2b2aa8926f add_subdirectory-test -> add-subdirectory-test for consistency 2016-02-10 07:01:40 -08:00
vitaut 21b8279cfe Remove biicode because it has been shut down 2016-02-09 21:25:52 -08:00
vitaut cd7f6c1fda Comment 2016-02-09 15:40:26 -08:00
vitaut 70e44a8e7f Simplify locale mock 2016-02-09 11:31:04 -08:00
vitaut b8c6192a61 Simplify build config and enable C++11 by default 2016-02-09 08:43:39 -08:00
Victor Zverovich c7b7141b11 Merge pull request #273 from niosHD/extend-ci-tests
Extend CI tests with older c++ standards
2016-02-09 06:53:58 -08:00
Mario Werner c57f8f563b omit the c++ 2003 tests 2016-02-09 09:08:11 +01:00
Mario Werner 016af73d19 fixed typo in script 2016-02-07 18:47:39 +01:00
Mario Werner f961683516 specify c++11 as c++0x for travis 2016-02-07 18:41:46 +01:00
Mario Werner 27a1b787c8 test in c++ 98, 03 and 11 mode 2016-02-07 18:32:23 +01:00
Mario Werner 6a79a3279b build and test in c++11 and in c++98 mode 2016-02-07 18:23:02 +01:00
vitaut 734d3bf175 Remove link to API compatibility report which is no longer functional 2016-02-05 08:31:19 -08:00
Mario Werner 8c8877df5a treat format.cc like a header
Given that it is required for header only builds it has to be
installed too.
2016-02-05 15:27:49 +01:00
Mario Werner 754be04f11 state that sudo is required for CI
This informs travis that the container-based build environment can
not be used.
2016-02-05 14:33:56 +01:00
vitaut 1adee75e1c Check if -fno-delete-null-pointer-checks flag is supported 2016-02-04 08:36:41 -08:00
vitaut a4b611a3d3 Workaround GTest bug 705 (#268) 2016-02-04 08:15:19 -08:00