浏览代码

Declare min CMake version in --system-information project

The --system-information flag's project triggered a CMP0000 warning
because the CMakeLists.txt it generates needs cmake_minimum_required.
Brad King 15 年之前
父节点
当前提交
a6cb1d4653
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      Modules/SystemInformation.cmake

+ 2 - 1
Modules/SystemInformation.cmake

@@ -1,6 +1,6 @@
 
 
 #=============================================================================
 #=============================================================================
-# Copyright 2007-2009 Kitware, Inc.
+# Copyright 2007-2010 Kitware, Inc.
 #
 #
 # Distributed under the OSI-approved BSD License (the "License");
 # Distributed under the OSI-approved BSD License (the "License");
 # see accompanying file Copyright.txt for details.
 # see accompanying file Copyright.txt for details.
@@ -12,6 +12,7 @@
 # (To distribute this file outside of CMake, substitute the full
 # (To distribute this file outside of CMake, substitute the full
 #  License text for the above reference.)
 #  License text for the above reference.)
 
 
+CMAKE_MINIMUM_REQUIRED(VERSION ${CMAKE_VERSION})
 PROJECT(DumpInformation)
 PROJECT(DumpInformation)
 
 
 # first get the standard information for th platform
 # first get the standard information for th platform