summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-03-17 17:31:44 (GMT)
committerBrad King <brad.king@kitware.com>2015-03-17 17:32:08 (GMT)
commitf94727a9c2d2a48ecca2297675a7762cdfae460f (patch)
tree052455b966a3b9a77ee400ed5395c78f95520e5f /Modules
parenta5cab2e7391df8d2072f1083c075a69bc746c7aa (diff)
downloadCMake-f94727a9c2d2a48ecca2297675a7762cdfae460f.zip
CMake-f94727a9c2d2a48ecca2297675a7762cdfae460f.tar.gz
CMake-f94727a9c2d2a48ecca2297675a7762cdfae460f.tar.bz2
Record compile features for GNU on Windows (#15443)
Drop the 'UNIX' condition on GNU compiler features. Suggested-by: David Demelier <demelier.david@gmail.com>
Diffstat (limited to 'Modules')
-rw-r--r--Modules/Compiler/GNU-CXX.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/Compiler/GNU-CXX.cmake b/Modules/Compiler/GNU-CXX.cmake
index 86a31e4..2dc02f0 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()