[CMake] Move cmake_minimum_required(2.8.8) at the top.

Suggested by Stephen Kelly.

llvm-svn: 200645
This commit is contained in:
NAKAMURA Takumi 2014-02-02 16:59:36 +00:00
parent 7829337172
commit 85d65ff49b
2 changed files with 3 additions and 2 deletions

View File

@ -1,8 +1,9 @@
cmake_minimum_required(VERSION 2.8.8)
# If we are not building as a part of LLVM, build Clang as an
# standalone project, using LLVM as an external library:
if( CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR )
project(Clang)
cmake_minimum_required(VERSION 2.8.8)
# Rely on llvm-config.
set(CONFIG_OUTPUT)

View File

@ -1,7 +1,7 @@
# See docs/CMake.html for instructions about how to build LLVM with CMake.
project(LLVM)
cmake_minimum_required(VERSION 2.8.8)
project(LLVM)
# Add path for custom modules
set(CMAKE_MODULE_PATH