From f94727a9c2d2a48ecca2297675a7762cdfae460f Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 17 Mar 2015 13:31:44 -0400 Subject: [PATCH 1/2] Record compile features for GNU on Windows (#15443) Drop the 'UNIX' condition on GNU compiler features. Suggested-by: David Demelier --- Modules/Compiler/GNU-CXX.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Modules/Compiler/GNU-CXX.cmake b/Modules/Compiler/GNU-CXX.cmake index 86a31e46c..2dc02f0c0 100644 --- a/Modules/Compiler/GNU-CXX.cmake +++ b/Modules/Compiler/GNU-CXX.cmake @@ -44,10 +44,10 @@ macro(cmake_record_cxx_compile_features) endmacro() set(_result 0) - if (UNIX AND NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.8) + if (NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.8) _get_gcc_features(${CMAKE_CXX14_STANDARD_COMPILE_OPTION} CMAKE_CXX14_COMPILE_FEATURES) endif() - if (UNIX AND NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.4) + if (NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.4) if (_result EQUAL 0) _get_gcc_features(${CMAKE_CXX11_STANDARD_COMPILE_OPTION} CMAKE_CXX11_COMPILE_FEATURES) endif() From 2aaf4f60810a86d62927a915e9286e4c2be9c53a Mon Sep 17 00:00:00 2001 From: Brad King Date: Fri, 20 Mar 2015 09:35:59 -0400 Subject: [PATCH 2/2] Help: Add notes for topic 'mingw-compile-features' --- Help/release/dev/mingw-compile-features.rst | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 Help/release/dev/mingw-compile-features.rst diff --git a/Help/release/dev/mingw-compile-features.rst b/Help/release/dev/mingw-compile-features.rst new file mode 100644 index 000000000..e2ed30b1e --- /dev/null +++ b/Help/release/dev/mingw-compile-features.rst @@ -0,0 +1,6 @@ +mingw-compile-features +---------------------- + +* The :manual:`Compile Features ` functionality + is now aware of features supported by GNU compilers on Windows, versions + 4.4 through 5.0.