Only try CPack on Linux
@@ -106,7 +106,7 @@ script:
- make test
- sudo make install
# Note the packages aren't used to test the examples below
- - cpack -D CPACK_PACKAGE_CONTACT="Test build in CI"
+ - 'if [ "$TRAVIS_OS_NAME" = "linux" ]; then cpack -D CPACK_PACKAGE_CONTACT="Test build in CI"; fi'
- mkdir examples
- cd examples
- cmake ../../examples
