1. 14 Feb, 2017 1 commit
  2. 08 Feb, 2017 1 commit
    • Matthew Woehlke's avatar
      Avoid C-style const casts (#659) · e15fa9f9
      Matthew Woehlke authored
      * Avoid C-style const casts
      
      Replace C-style casts that discard `const` with `const_cast` (and, where
      necessary, `reinterpret_cast` as well).
      
      * Warn about C-style const-discarding casts
      
      Change pybind11_enable_warnings to also enable `-Wcast-qual` (warn if a
      C-style cast discards `const`) by default. The previous commit should
      have gotten rid of all of these (at least, all the ones that tripped in
      my build, which included the tests), and this should discourage more
      from newly appearing.
      e15fa9f9
  3. 26 Dec, 2016 1 commit
    • Jason Rhinelander's avatar
      Avoid CMP0048 warning (#570) · a3fec901
      Jason Rhinelander authored
      Fixes #567.
      
      If pybind's CMakeLists gets loaded via an include_directory from another
      CMakeLists with a higher minimum version (e.g. 3.0), the project()
      command without a version produces a CMP0048 warning.
      
      This commit explicitly requests the new behaviour if the policy exists,
      as it won't cause problems (we set VERSION later).
      a3fec901
  4. 19 Dec, 2016 2 commits
    • Dean Moldovan's avatar
      Rename target from pybind11::pybind11 to pybind11::module · 71e8a796
      Dean Moldovan authored
      Makes room for an eventual pybind11::embedded target.
      71e8a796
    • Dean Moldovan's avatar
      Make sure add_subdirectory and find_package behave identically · b0f3885c
      Dean Moldovan authored
      Add a BUILD_INTERFACE and a pybind11::pybind11 alias for the interface
      library to match the installed target.
      
      Add new cmake tests for add_subdirectory and consolidates the
      .cpp and .py files needed for the cmake build tests:
      
      Before:
      tests
      |-- test_installed_module
      |   |-- CMakeLists.txt
      |   |-- main.cpp
      |   \-- test.py
      \-- test_installed_target
          |-- CMakeLists.txt
          |-- main.cpp
          \-- test.py
      
      After:
      tests
      \-- test_cmake_build
          |-- installed_module/CMakeLists.txt
          |-- installed_target/CMakeLists.txt
          |-- subdirectory_module/CMakeLists.txt
          |-- subdirectory_target/CMakeLists.txt
          |-- main.cpp
          \-- test.py
      b0f3885c
  5. 13 Dec, 2016 3 commits
  6. 15 Nov, 2016 1 commit
  7. 09 Oct, 2016 2 commits
  8. 29 Sep, 2016 1 commit
  9. 13 Sep, 2016 1 commit
  10. 26 Aug, 2016 1 commit
    • Dean Moldovan's avatar
      Add barebones build to Travis CI · b62a896f
      Dean Moldovan authored
      This build makes sure everything still works without optional
      dependencies (numpy/scipy/eigen) and also tests the automatic
      discovery functions in CMake (Python version, C++ standard).
      
      [skip appveyor]
      b62a896f
  11. 19 Aug, 2016 1 commit
    • Dean Moldovan's avatar
      Port tests to pytest · a0c1ccf0
      Dean Moldovan authored
      Use simple asserts and pytest's powerful introspection to make testing
      simpler. This merges the old .py/.ref file pairs into simple .py files
      where the expected values are right next to the code being tested.
      
      This commit does not touch the C++ part of the code and replicates the
      Python tests exactly like the old .ref-file-based approach.
      a0c1ccf0
  12. 15 Aug, 2016 1 commit
  13. 02 Aug, 2016 1 commit
  14. 01 Aug, 2016 1 commit
  15. 02 Jun, 2016 1 commit
  16. 29 May, 2016 2 commits
  17. 28 May, 2016 2 commits
  18. 27 May, 2016 1 commit
  19. 26 May, 2016 2 commits
  20. 25 May, 2016 1 commit
  21. 22 May, 2016 3 commits
  22. 16 May, 2016 1 commit
  23. 15 May, 2016 1 commit
  24. 05 May, 2016 2 commits
  25. 01 May, 2016 1 commit
  26. 30 Apr, 2016 1 commit
  27. 13 Apr, 2016 2 commits
  28. 15 Mar, 2016 1 commit
  29. 10 Mar, 2016 1 commit