.travis.yml:add c++11 flag for osx (#236)

* .travis.yml:add c++11 flag for osx

fixes #233

And correct flags for model_import_export, edit BUILD.md
This commit is contained in:
Andy Alt
2018-09-18 18:29:37 -05:00
committed by GitHub
parent 37c8030cae
commit 23f4f5c5e7
3 changed files with 11 additions and 7 deletions

View File

@@ -7,6 +7,11 @@ SET(TARGET_NAME "zetaglest_tests")
IF(BUILD_ZETAGLEST_TESTS)
MESSAGE(STATUS "Build ${TARGET_NAME} = YES")
# The tests fail on Travis with clang on osx because of the use of "bind"
if("${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++11")
endif()
INCLUDE (CheckIncludeFiles)
FIND_PACKAGE(CppUnit REQUIRED)