diff options
Diffstat (limited to 'Modules/TestForSTDNamespace.cmake')
-rw-r--r-- | Modules/TestForSTDNamespace.cmake | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/Modules/TestForSTDNamespace.cmake b/Modules/TestForSTDNamespace.cmake index 6a7564445..3ae80c744 100644 --- a/Modules/TestForSTDNamespace.cmake +++ b/Modules/TestForSTDNamespace.cmake @@ -1,22 +1,19 @@ -# - Test for std:: namespace support -# check if the compiler supports std:: on stl classes -# CMAKE_NO_STD_NAMESPACE - defined by the results -# +# Distributed under the OSI-approved BSD 3-Clause License. See accompanying +# file Copyright.txt or https://cmake.org/licensing for details. -#============================================================================= -# Copyright 2002-2009 Kitware, Inc. +#.rst: +# TestForSTDNamespace +# ------------------- +# +# Test for std:: namespace support +# +# check if the compiler supports std:: on stl classes # -# Distributed under the OSI-approved BSD License (the "License"); -# see accompanying file Copyright.txt for details. +# :: # -# This software is distributed WITHOUT ANY WARRANTY; without even the -# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -# See the License for more information. -#============================================================================= -# (To distribute this file outside of CMake, substitute the full -# License text for the above reference.) +# CMAKE_NO_STD_NAMESPACE - defined by the results -if("CMAKE_STD_NAMESPACE" MATCHES "^CMAKE_STD_NAMESPACE$") +if(NOT DEFINED CMAKE_STD_NAMESPACE) message(STATUS "Check for STD namespace") try_compile(CMAKE_STD_NAMESPACE ${CMAKE_BINARY_DIR} ${CMAKE_ROOT}/Modules/TestForSTDNamespace.cxx |