Преглед на файлове

Create Linux GNU compiler flag consolidation macro

This macro will be used for GNU compiler flags that are specific to
Linux but not to any language.
Brad King преди 16 години
родител
ревизия
7b106a6fb3
променени са 4 файла, в които са добавени 28 реда и са изтрити 0 реда
  1. 2 0
      Modules/Platform/Linux-GNU-C.cmake
  2. 2 0
      Modules/Platform/Linux-GNU-CXX.cmake
  3. 2 0
      Modules/Platform/Linux-GNU-Fortran.cmake
  4. 22 0
      Modules/Platform/Linux-GNU.cmake

+ 2 - 0
Modules/Platform/Linux-GNU-C.cmake

@@ -0,0 +1,2 @@
+INCLUDE(Platform/Linux-GNU)
+__linux_compiler_gnu(C)

+ 2 - 0
Modules/Platform/Linux-GNU-CXX.cmake

@@ -0,0 +1,2 @@
+INCLUDE(Platform/Linux-GNU)
+__linux_compiler_gnu(CXX)

+ 2 - 0
Modules/Platform/Linux-GNU-Fortran.cmake

@@ -0,0 +1,2 @@
+INCLUDE(Platform/Linux-GNU)
+__linux_compiler_gnu(Fortran)

+ 22 - 0
Modules/Platform/Linux-GNU.cmake

@@ -0,0 +1,22 @@
+
+#=============================================================================
+# Copyright 2010 Kitware, Inc.
+#
+# Distributed under the OSI-approved BSD License (the "License");
+# see accompanying file Copyright.txt for details.
+#
+# This software is distributed WITHOUT ANY WARRANTY; without even the
+# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+# See the License for more information.
+#=============================================================================
+# (To distributed this file outside of CMake, substitute the full
+#  License text for the above reference.)
+
+# This module is shared by multiple languages; use include blocker.
+if(__LINUX_COMPILER_GNU)
+  return()
+endif()
+set(__LINUX_COMPILER_GNU 1)
+
+macro(__linux_compiler_gnu lang)
+endmacro()