Skip to content
This repository was archived by the owner on Aug 11, 2023. It is now read-only.

Commit a5b2d5e

Browse files
authored
Update Travis configuration (#122)
Unfortunately we install an old version of CMake while travis appears to have a nice new one preinstalled which we should use instead. The previous changeset changed the CXX standard to a global property. It appears it is still broken in the version of CMake used on Travis, regrettably.
1 parent 3709e75 commit a5b2d5e

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,6 @@ script:
4545
###########################
4646
- mkdir build
4747
- cd build
48-
- cmake ../ -DComputeCpp_DIR=/tmp/computecpp -DCOMPUTECPP_SDK_BUILD_TESTS=1 -DCOMPUTECPP_DISABLE_GCC_DUAL_ABI=1
48+
- cmake ../ -DComputeCpp_DIR=/tmp/computecpp -DCOMPUTECPP_SDK_BUILD_TESTS=1 -DCMAKE_CXX_FLAGS="-D_GLIBCXX_USE_CXX11_ABI=0"
4949
- make -j2
50-
- COMPUTECPP_TARGET="host" ctest -V -E opencl
50+
- COMPUTECPP_TARGET="host" ctest -V

.travis/before_install.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22

33
set -ev
44

5-
# Add modern dependencies (cmake, boost)
6-
sudo add-apt-repository ppa:george-edison55/cmake-3.x -y
75
sudo apt-get update -q
8-
sudo apt-get install cmake ocl-icd-libopencl1 ocl-icd-dev opencl-headers -y
6+
sudo apt-get install ocl-icd-libopencl1 ocl-icd-dev opencl-headers -y
97
# Use gcc 5 as default
108
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 60 --slave /usr/bin/g++ g++ /usr/bin/g++-5

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ find_package(ComputeCpp REQUIRED)
77

88
option(COMPUTECPP_SDK_USE_OPENMP "Enable OpenMP support in samples" OFF)
99

10-
set(GLOBAL PROPERTY CMAKE_CXX_STANDARD 14)
10+
set(CMAKE_CXX_STANDARD 14)
1111

1212
# Set include ComputeCpp directories
1313
include_directories(SYSTEM ${COMPUTECPP_INCLUDE_DIRECTORY})

0 commit comments

Comments
 (0)