From 947d29aa374b9b5f5c581120ce5a4e7a32d0c981 Mon Sep 17 00:00:00 2001 From: Alec Thomas Date: Mon, 1 Apr 2013 11:51:29 -0400 Subject: Allow shared_ptr implementation to be selected. Fixes #6. --- scripts/travis.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 scripts/travis.sh (limited to 'scripts') diff --git a/scripts/travis.sh b/scripts/travis.sh new file mode 100755 index 0000000..9d06fa6 --- /dev/null +++ b/scripts/travis.sh @@ -0,0 +1,15 @@ +#!/bin/bash -e + +CMAKE_ARGS="-DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTING=1" + +if [ "$USE_STD_SHARED_PTR" = "1" ]; then + CMAKE_ARGS="${CMAKE_ARGS} -DUSE_STD_SHARED_PTR=1" + # This fails on OSX + if [ "$CXX" = "clang++" ]; then + CMAKE_ARGS="${CMAKE_ARGS} -DUSE_CPP11_STDLIB=1" + fi +fi + +cmake ${CMAKE_ARGS} +make +make test -- cgit v1.2.3