diff options
author | costan <costan@google.com> | 2017-07-28 09:55:21 -0700 |
---|---|---|
committer | Victor Costan <pwnall@chromium.org> | 2017-07-28 10:14:21 -0700 |
commit | be6dc3db83c4701e3e79694dcbfd1c3da03b91dd (patch) | |
tree | 788fe71ccbcd3b09312df73950798926d35b79bc /.travis.yml | |
parent | e4de6ce087aaf72dfce7d8d252c3a82f18419cae (diff) | |
download | snappy-git-be6dc3db83c4701e3e79694dcbfd1c3da03b91dd.tar.gz |
Redo CMake configuration.
The style was changed to match the official manual [1], the install
configuration was simplified and now matches the official packaging
guide [2], and the config files use the CMake-specific variable syntax
${VAR} instead of the autoconf-compatible syntax @VAR@, as documented in
[3]. The public header files are declared as such (for CMake 3.3+), and
the generated headers are included in the library target definition.
The tests are only built if SNAPPY_BUILD_TESTS (default ON) is true, so
zippy can be easily used in projects that add_subdirectory() its source
code directly, instead of using find_package().
[1] https://cmake.org/cmake/help/git-master/manual/cmake-language.7.html
[2] https://cmake.org/cmake/help/git-master/manual/cmake-packages.7.html
[3] https://cmake.org/cmake/help/git-master/command/configure_file.html
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml index 65ee97e..9841e9a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -47,13 +47,13 @@ install: - echo ${CC} - echo ${CXX} - ${CXX} --version +- cmake --version before_script: - mkdir -p build && cd build - cmake .. -DCMAKE_BUILD_TYPE=$BUILD_TYPE - cmake --build . - cd .. -- cmake --version script: -- build/snappy-unittest
\ No newline at end of file +- build/snappy_unittest
\ No newline at end of file |