string(APPEND) is too recent for travis's cmake (or 2.8.11, for that matter).

This commit is contained in:
Pietro Gagliardi 2016-06-05 13:48:51 -04:00
parent 044e10165d
commit 10aa198ac3
2 changed files with 2 additions and 3 deletions

View File

@ -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 *

View File

@ -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