[PATCH] D34282: Call cmake_minimum_required at the top of CMakeLists.txt

Pirama Arumuga Nainar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 16 14:15:24 PDT 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL305593: Call cmake_minimum_required at the top of CMakeLists.txt (authored by pirama).

Changed prior to commit:
  https://reviews.llvm.org/D34282?vs=102843&id=102875#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D34282

Files:
  compiler-rt/trunk/CMakeLists.txt


Index: compiler-rt/trunk/CMakeLists.txt
===================================================================
--- compiler-rt/trunk/CMakeLists.txt
+++ compiler-rt/trunk/CMakeLists.txt
@@ -7,14 +7,14 @@
 # An important constraint of the build is that it only produces libraries
 # based on the ability of the host toolchain to target various platforms.
 
+cmake_minimum_required(VERSION 3.4.3)
+
 # Check if compiler-rt is built as a standalone project.
 if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR OR COMPILER_RT_STANDALONE_BUILD)
   project(CompilerRT C CXX ASM)
   set(COMPILER_RT_STANDALONE_BUILD TRUE)
 endif()
 
-cmake_minimum_required(VERSION 3.4.3)
-
 # Add path for custom compiler-rt modules.
 list(INSERT CMAKE_MODULE_PATH 0
   "${CMAKE_CURRENT_SOURCE_DIR}/cmake"


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D34282.102875.patch
Type: text/x-patch
Size: 783 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170616/976949ca/attachment.bin>


More information about the llvm-commits mailing list