summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-09-10 15:29:48 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2015-09-10 15:29:48 (GMT)
commit51ec922223ecc6cc4bf06dec680719c36944cadc (patch)
treea4f895fb0d5ccada7e37c69e9ae848b443596ffb /Modules
parent1e2f5dc9229c98006b9643b4b6a2e40d71c37eb0 (diff)
parent2fbc41f38ae07c6c5943750b000296cd69a8b03b (diff)
downloadCMake-51ec922223ecc6cc4bf06dec680719c36944cadc.zip
CMake-51ec922223ecc6cc4bf06dec680719c36944cadc.tar.gz
CMake-51ec922223ecc6cc4bf06dec680719c36944cadc.tar.bz2
Merge topic 'mingw-compile-features-C'
2fbc41f3 Record compile features for GNU C on Windows (#15727)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/Compiler/GNU-C.cmake4
1 files changed, 2 insertions, 2 deletions
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()