Record compile features for GNU C on Windows (#15727)
Drop the 'UNIX' condition on GNU C compiler features.
This commit is contained in:
parent
0e7f34c0a9
commit
2fbc41f38a
|
@ -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.
|
|
@ -34,10 +34,10 @@ macro(cmake_record_c_compile_features)
|
||||||
endmacro()
|
endmacro()
|
||||||
|
|
||||||
set(_result 0)
|
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)
|
_get_gcc_features(${CMAKE_C11_STANDARD_COMPILE_OPTION} CMAKE_C11_COMPILE_FEATURES)
|
||||||
endif()
|
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)
|
if (_result EQUAL 0)
|
||||||
_get_gcc_features(${CMAKE_C99_STANDARD_COMPILE_OPTION} CMAKE_C99_COMPILE_FEATURES)
|
_get_gcc_features(${CMAKE_C99_STANDARD_COMPILE_OPTION} CMAKE_C99_COMPILE_FEATURES)
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in New Issue