Skip to content

Commit

Permalink
Refactor CMake to use more modern paradigms (#741)
Browse files Browse the repository at this point in the history
Remove 2.6-isms
Remove 2.8-isms
Bump CMake minimum version to 3.4

Disable some options when used as a subdirectory

Use `CONFIGURE_DEPENDS` with `file(GLOB)` when possible

Backport CMake 3.15's MSVC_RUNTIME_LIBRARY setting.
Set all compile options as generator expressions.
Set all find-package files to be installed to the correct file.

Remove `export(PACKAGE)`, as this has been deprecated.
Remove fat binary support
Remove manual setting of iPhone settings. These should be set by parent
projects.
Remove use of ExternalProject for a local use
Conditionally remove format target unless clang-format is found
  • Loading branch information
bruxisma authored and jbeder committed Sep 27, 2019
1 parent 9a36242 commit 5e9cb01
Show file tree
Hide file tree
Showing 7 changed files with 189 additions and 416 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ before_script:
- mkdir build
- cd build
- cmake ..
- cd ..
script:
- make
- test/run-tests

- cmake --build build
- cmake --build build --target test
matrix:
exclude:
- os: linux
Expand Down
Loading

0 comments on commit 5e9cb01

Please sign in to comment.