summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAllen Winter <allen.winter@kdab.com>2022-02-05 12:49:01 -0500
committerAllen Winter <allen.winter@kdab.com>2022-02-05 12:49:33 -0500
commit91cbf0e58f897050aaa525bf45094846832206da (patch)
treef23c855147f3aba69d8cbcfb2bf57460d36d90a8
parentbb3139054b1077e0b6baf1b4cf0d87b2299398d5 (diff)
downloadlibical-git-91cbf0e58f897050aaa525bf45094846832206da.tar.gz
buildsystem - require C++11 compliance for the C++ bindings
-rw-r--r--CMakeLists.txt2
-rw-r--r--Install.txt1
-rw-r--r--ReleaseNotes.txt1
3 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2d43e6fb..82b14260 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -151,6 +151,8 @@ set(LIBRARY_TYPE SHARED)
option(WITH_CXX_BINDINGS "Build the C++ bindings." True)
if(WITH_CXX_BINDINGS)
enable_language(CXX)
+ set(CMAKE_CXX_STANDARD 11)
+ set(CMAKE_CXX_STANDARD_REQUIRED ON)
if(CMAKE_CXX_COMPILER)
add_definitions(-DWITH_CXX_BINDINGS)
else()
diff --git a/Install.txt b/Install.txt
index 779c6b86..cd9507c0 100644
--- a/Install.txt
+++ b/Install.txt
@@ -14,6 +14,7 @@ To build libical you will need:
- Perl
- libicu (not required but strongly recommended)
- a C99-compliant C compiler (let us know if the build fails with your C compiler)
+ - for C++ bindings, a C++11 compliant compiler
Building on Unix with gcc or clang:
% mkdir build
diff --git a/ReleaseNotes.txt b/ReleaseNotes.txt
index a2253ecf..30f86fa9 100644
--- a/ReleaseNotes.txt
+++ b/ReleaseNotes.txt
@@ -4,6 +4,7 @@ Release Highlights
Version 3.1.0 (NOT RELEASED YET):
--------------------------------
* MSVC 2013 or higher (when building on Windows with MSVC)
+ * For the C++ bindings, a C++11 compliant complier is required
* Requires CMake v3.11.0 or higher
* libical-glib now requires glib 2.38 or higher
* draft-ietf-calext-eventpub-extensions-19 (RFC 9073) support added