summaryrefslogtreecommitdiffstats
path: root/Utilities/std
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2020-03-14 16:20:49 (GMT)
committerMarc Chevrier <marc.chevrier@gmail.com>2020-03-23 09:29:58 (GMT)
commitf034b0f66338f37d4f637916cc42b9c4a4f30a32 (patch)
tree1c4fead35ad677f82cc9fd7e837c773b00bbbf61 /Utilities/std
parent7099db5dd48d36e5d39ab17219278d834c8a88a7 (diff)
downloadCMake-f034b0f66338f37d4f637916cc42b9c4a4f30a32.zip
CMake-f034b0f66338f37d4f637916cc42b9c4a4f30a32.tar.gz
CMake-f034b0f66338f37d4f637916cc42b9c4a4f30a32.tar.bz2
CMake compilation: do not use compiler extensions
For now, compiler extensions are no longer activated on CMake sources. However these extensions are still used for various third parties. This MR is a partial answer to the issue #20454.
Diffstat (limited to 'Utilities/std')
-rw-r--r--Utilities/std/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/Utilities/std/CMakeLists.txt b/Utilities/std/CMakeLists.txt
index 63c0a60..a72abb7 100644
--- a/Utilities/std/CMakeLists.txt
+++ b/Utilities/std/CMakeLists.txt
@@ -1,4 +1,8 @@
+# To ensure maximum portability across various compilers and platforms
+# deactivate any compiler extensions
+set(CMAKE_CXX_EXTENSIONS FALSE)
+
# source files for CMake std library
set(SRCS cm/bits/string_view.cxx
cm/memory