summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-09-09 13:32:46 (GMT)
committerBrad King <brad.king@kitware.com>2015-09-09 13:32:46 (GMT)
commit2fbc41f38ae07c6c5943750b000296cd69a8b03b (patch)
treea06a88208ec42c8da8955c1ea9199b019482a271
parent0e7f34c0a9a6ad8dbcdad32910d87b8d8671cd51 (diff)
downloadCMake-2fbc41f38ae07c6c5943750b000296cd69a8b03b.zip
CMake-2fbc41f38ae07c6c5943750b000296cd69a8b03b.tar.gz
CMake-2fbc41f38ae07c6c5943750b000296cd69a8b03b.tar.bz2
Record compile features for GNU C on Windows (#15727)
Drop the 'UNIX' condition on GNU C compiler features.
-rw-r--r--Help/release/dev/mingw-compile-features-C.rst5
-rw-r--r--Modules/Compiler/GNU-C.cmake4
2 files changed, 7 insertions, 2 deletions
diff --git a/Help/release/dev/mingw-compile-features-C.rst b/Help/release/dev/mingw-compile-features-C.rst
new file mode 100644
index 0000000..b3f99f1
--- /dev/null
+++ b/Help/release/dev/mingw-compile-features-C.rst
@@ -0,0 +1,5 @@
+mingw-compile-features-C
+------------------------
+
+* The :manual:`Compile Features <cmake-compile-features(7)>` functionality
+ is now aware of features supported by GNU C compilers on Windows.
diff --git a/Modules/Compiler/GNU-C.cmake b/Modules/Compiler/GNU-C.cmake
index 89704e6..031ab73 100644
--- a/Modules/Compiler/GNU-C.cmake
+++ b/Modules/Compiler/GNU-C.cmake
@@ -34,10 +34,10 @@ macro(cmake_record_c_compile_features)
endmacro()
set(_result 0)
- if (UNIX AND NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 4.6)
+ if (NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 4.6)
_get_gcc_features(${CMAKE_C11_STANDARD_COMPILE_OPTION} CMAKE_C11_COMPILE_FEATURES)
endif()
- if (UNIX AND NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 4.4)
+ if (NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 4.4)
if (_result EQUAL 0)
_get_gcc_features(${CMAKE_C99_STANDARD_COMPILE_OPTION} CMAKE_C99_COMPILE_FEATURES)
endif()