Commit 232112c8 authored by fanliwen's avatar fanliwen
Browse files

move cmake_minimum_required to the top of the file where others are listed

parent d6bd3c21
if(MSVC) if(CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang")
cmake_minimum_required(VERSION 3.12)
elseif(MSVC)
cmake_minimum_required(VERSION 3.8) cmake_minimum_required(VERSION 3.8)
elseif(USE_GPU OR APPLE) elseif(USE_GPU OR APPLE)
cmake_minimum_required(VERSION 3.2) cmake_minimum_required(VERSION 3.2)
...@@ -23,8 +25,6 @@ elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Clang") ...@@ -23,8 +25,6 @@ elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS "3.8") if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS "3.8")
message(FATAL_ERROR "Insufficient Clang version") message(FATAL_ERROR "Insufficient Clang version")
endif() endif()
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang")
cmake_minimum_required(VERSION 3.12)
endif() endif()
if(APPLE) if(APPLE)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment