X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=CMakeLists.txt;h=21f2031b954a0317306b9f1ef249149c04f9f8f2;hb=01bbc42b312caeb4000c9002561c62fe4e420ab5;hp=b7715d2b0d6a8b734e2b4d203a5c45e19cc92f31;hpb=513ccfc64a398055e7e7afc380d578cd2237b885;p=platform%2Fupstream%2Fcoreclr.git diff --git a/CMakeLists.txt b/CMakeLists.txt index b7715d2..21f2031 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,9 +1,7 @@ # Verify minimum required version -cmake_minimum_required(VERSION 2.8.12) +cmake_minimum_required(VERSION 3.5.1) -if(CMAKE_VERSION VERSION_EQUAL 3.0 OR CMAKE_VERSION VERSION_GREATER 3.0) - cmake_policy(SET CMP0042 NEW) -endif() +cmake_policy(SET CMP0042 NEW) # Set the project name project(CoreCLR) @@ -11,7 +9,7 @@ project(CoreCLR) # Include cmake functions include(functions.cmake) -# Include global configure settings +# Verify that LTCG/LTO is available include(configure.cmake) if (WIN32) @@ -36,12 +34,6 @@ endif(CORECLR_SET_RPATH) OPTION(CLR_CMAKE_ENABLE_CODE_COVERAGE "Enable code coverage" OFF) OPTION(CLR_CMAKE_WARNINGS_ARE_ERRORS "Warnings are errors" ON) -# Ensure that python is present -find_program(PYTHON NAMES python3 python2 python py) -if (PYTHON STREQUAL "PYTHON-NOTFOUND") - message(FATAL_ERROR "PYTHON not found: Please install Python 2.7.9 or later from https://www.python.org/downloads/") -endif() - # Ensure other tools are present if (WIN32) if(CLR_CMAKE_HOST_ARCH STREQUAL arm) @@ -166,7 +158,6 @@ if(CLR_CMAKE_PLATFORM_UNIX AND NOT DEFINED CLR_CROSS_COMPONENTS_BUILD) endif() if(CLR_CMAKE_PLATFORM_UNIX) - add_subdirectory(src/ToolBox/SOS/lldbplugin) add_subdirectory(src/pal) add_subdirectory(src/coreclr/hosts) add_subdirectory(src/ildasm/unixcoreclrloader) @@ -221,10 +212,6 @@ if (CLR_CMAKE_PLATFORM_UNIX) include_directories("src/pal/src/safecrt") endif (CLR_CMAKE_PLATFORM_UNIX) -# Microsoft.Dotnet.BuildTools.Coreclr version -set(BuildToolsVersion "1.0.4-prerelease") -set(BuildToolsDir "${CLR_CMAKE_PACKAGES_DIR}/Microsoft.DotNet.BuildTools.CoreCLR/${BuildToolsVersion}") - #------------------------------ # Add Product Directory #------------------------------