mirror of
https://github.com/pocoproject/poco.git
synced 2025-04-26 18:11:29 +02:00

* Use appveyor.yaml from c++11 branch so that CI run ok. * Use .travis.yml from the c++ branch so that Travis CI jobs run ok. * Add c++11 scripts and Linux config so that Travis CI jobs are ok. * Use mkdocumentation & mkrelease from c++11 branch. * Use PocoDoc config files from c++11 branch. * define POCO_ENABLE_C11 as the default * CMake: ignore Crypto for now. To be fixed since it fails. * Backport c++11 changes from the c++11 branch * Add Cygwin config with c++11 setup. * Update appveyor.yml from c++11 branch.
19 lines
506 B
Bash
19 lines
506 B
Bash
#! /bin/sh
|
|
#
|
|
# $Id: //poco/1.4/build/script/cpp11-appleclang#1 $
|
|
#
|
|
# cpp11-appleclang
|
|
#
|
|
# Detect compatible AppleClang version and add c++11/14 flags
|
|
#
|
|
|
|
CLANGVERSION := $(shell $(CXX) -E -dM - < /dev/null | grep __apple_build_version__ | sed -e 's/^.* //g')
|
|
|
|
# C++14 needs AppleClang 500.x
|
|
ifeq ($(shell test $(CLANGVERSION) -ge 5000275 && echo 1), 1)
|
|
CXXFLAGS += -std=c++1y
|
|
# C++11 needs AppleClang 503.x
|
|
else ifeq ($(shell test $(CLANGVERSION) -ge 5030038 && echo 1), 1)
|
|
CXXFLAGS += -std=c++0x
|
|
endif
|