Author: rleigh
Date: Wed Jun 14 20:43:58 2017
New Revision: 1798746
URL: http://svn.apache.org/viewvc?rev=1798746&view=rev
Log:
make: Minimum C++ standard is C++98, but also try later standards first
This is to allow features from later standard versions to be checked.
Fallback to C++98 will always occur if the compiler doesn't support
later standard versions.
Modified:
xerces/c/trunk/CMakeLists.txt
Modified: xerces/c/trunk/CMakeLists.txt
URL:
http://svn.apache.org/viewvc/xerces/c/trunk/CMakeLists.txt?rev=1798746&r1=1798745&r2=1798746&view=diff
==============================================================================
--- xerces/c/trunk/CMakeLists.txt (original)
+++ xerces/c/trunk/CMakeLists.txt Wed Jun 14 20:43:58 2017
@@ -28,6 +28,13 @@ endif(POLICY CMP0053)
if (POLICY CMP0054)
cmake_policy(SET CMP0054 NEW)
endif(POLICY CMP0054)
+if (POLICY CMP0067)
+ cmake_policy(SET CMP0067 NEW)
+endif(POLICY CMP0067)
+
+# Try C++14, then fall back to C++11 and C++98. Used for feature tests
+# for optional features.
+set(CMAKE_CXX_STANDARD 14)
# Use folders (for IDE project grouping)
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]