mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-24 09:12:28 +02:00
c++11 support: update the develop branch (#1819)
* 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.
This commit is contained in:
committed by
Aleksandar Fabijanic
parent
63447f0297
commit
7bf53d4f3f
18
build/script/cpp11-appleclang
Normal file
18
build/script/cpp11-appleclang
Normal file
@@ -0,0 +1,18 @@
|
||||
#! /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
|
||||
Reference in New Issue
Block a user