From 10aa198ac32970c67c9fb7f196c6c8f85d024098 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sun, 5 Jun 2016 13:48:51 -0400 Subject: [PATCH] string(APPEND) is too recent for travis's cmake (or 2.8.11, for that matter). --- .travis.yml | 1 - CMakeLists.txt | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index e71145bf..5c287abd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,7 +11,6 @@ script: - if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get install libgtk-3-dev -y || sudo apt-cache search libgtk3; fi - mkdir build - cd build - - cmake --version - cmake .. -G "Unix Makefiles" - make tester examples - rm -rf * diff --git a/CMakeLists.txt b/CMakeLists.txt index 9c64e2af..3c081290 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -99,8 +99,8 @@ else() -fvisibility=hidden ) # don't use C_VERSION or CXX_VERSION because they use GNU standards - string(APPEND CMAKE_C_FLAGS " --std=c99") - string(APPEND CMAKE_CXX_FLAGS " --std=c++11") + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} --std=c99") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --std=c++11") set(_COMMON_LDFLAGS -fvisibility=hidden