1. 12 Jan, 2016 1 commit
    • Mario Werner's avatar
      upgrades to cmake 2.8.12 and adds config and export support · daf74ae0
      Mario Werner authored
      This commit upgrades cmake to 2.8.12 to implement proper cmake
      `find_package` support using config and export file generation.
      Having this support enables users to use installed cppformat
      with a simple `find_package` call. Directly using a version
      from a build directory is also supported.
      
      main.cpp:
      ```
       #include <cppformat/format.h>
      int main(int argc, char** argv)
      {
        for(int i = 0; i < argc; ++i)
          fmt::print("{}: {}\n",i,argv[i]);
        return 0;
      }
      
      ```
      
      CMakeLists.txt:
      ```
      cmake_minimum_required(VERSION 2.8.12)
      
      project(cppformat-test)
      
      find_package(cppformat REQUIRED)
      
      add_executable(cppformat-test "main.cpp")
      target_link_libraries(cppformat-test cppformat)
      
      ```
      Configuring when cppformat is installed under `CMAKE_INSTALL_PREFIX`: `cmake <PATH_TO_TEST_SRC>`
      
      Configuring when cppformat is installed `ELSEWHERE`: `cmake -Dcppformat_DIR=<ELSEWHERE>/lib/cmake/cppformat <PATH_TO_TEST_SRC>`
      
      Configuring when cppformat is only built: `cmake -Dcppformat_DIR=<cppformat_BUILD_DIR> <PATH_TO_TEST_SRC>`
      daf74ae0
  2. 09 Jan, 2016 2 commits
  3. 08 Jan, 2016 2 commits
  4. 07 Jan, 2016 1 commit
  5. 06 Jan, 2016 3 commits
    • Michael Winterberg's avatar
      Fixed unknown pragma warnings for _BitScanReverse. · 28a303dd
      Michael Winterberg authored
      Changed to only define the MSVC implementations for clz and clzll if the builtins are not available to avoid warnings about an unknown #pragma for "intrinsic".
      28a303dd
    • Victor Zverovich's avatar
      Merge pull request #256 from mwinterb/clang_ms_clz · 39438034
      Victor Zverovich authored
      Fixed macro redefinition warnings when compiling with clang-cl.
      39438034
    • Michael Winterberg's avatar
      Fixed issues with MSVC emulations of clz and clzll. · 7185e96d
      Michael Winterberg authored
      Both clang-cl and Clang/C2 #define _MSC_VER but also have support for __builtin_clz and __builtin_clzll, leading to duplicate macro definition warnings. Emulation of clz using _BitScanReverse is suppressed if the builtins are already available.
      
      Additionally, the value of the output parameter of _BitScanReverse is undefined if the input value is 0, which is avoided by construction, so the code analysis warning for using uninitialized data is now suppressed.
      7185e96d
  6. 02 Jan, 2016 1 commit
  7. 24 Dec, 2015 3 commits
  8. 23 Dec, 2015 2 commits
  9. 20 Dec, 2015 2 commits
  10. 19 Dec, 2015 2 commits
  11. 18 Dec, 2015 7 commits
  12. 17 Dec, 2015 1 commit
  13. 10 Dec, 2015 3 commits
  14. 09 Dec, 2015 1 commit
  15. 06 Dec, 2015 2 commits
  16. 05 Dec, 2015 3 commits
  17. 04 Dec, 2015 4 commits