فهرست منبع

Features: Reorder the GNU C dialect feature tests

This doesn't make a difference, but the consistency with other files
is easier to reason about.
Stephen Kelly 11 سال پیش
والد
کامیت
b18155b788
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      Modules/Compiler/GNU-C.cmake

+ 2 - 2
Modules/Compiler/GNU-C.cmake

@@ -21,12 +21,12 @@ macro(cmake_record_c_compile_features)
   endmacro()
   endmacro()
 
 
   if (UNIX AND NOT APPLE AND NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 4.7)
   if (UNIX AND NOT APPLE AND NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 4.7)
-    _get_gcc_features(c90 CMAKE_C90_COMPILE_FEATURES)
+    _get_gcc_features(c11 CMAKE_C11_COMPILE_FEATURES)
     if (_result EQUAL 0)
     if (_result EQUAL 0)
       _get_gcc_features(c99 CMAKE_C99_COMPILE_FEATURES)
       _get_gcc_features(c99 CMAKE_C99_COMPILE_FEATURES)
     endif()
     endif()
     if (_result EQUAL 0)
     if (_result EQUAL 0)
-      _get_gcc_features(c11 CMAKE_C11_COMPILE_FEATURES)
+      _get_gcc_features(c90 CMAKE_C90_COMPILE_FEATURES)
     endif()
     endif()
   else()
   else()
     set(_result 0)
     set(_result 0)