mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-29 06:49:01 +08:00
52a9d9a9e4
* [vcpkg] Enable binary caching by default. Support `x-` migration. Fix passing multiple copies of single parameter arguments. * [vcpkg] Handle x- prefixes for general arguments * [vcpkg] Fix #12285 and improve documentation of default binary cache path * [vcpkg] Revert x- prefix homogenization for per-command arguments * [vcpkg] Only use accelerated compiler detection for Windows Desktop + Ninja. Improve breadcrumbs for users encountering issues. * [vcpkg] Fix compiler tracking not pre-downloading Ninja. Fix compiler tracking not looking in -err.log. * [vcpkg] Update toolsrc/src/vcpkg/binarycaching.cpp Co-authored-by: Billy O'Neal <bion@microsoft.com> * [vcpkg] Format Co-authored-by: Robert Schumacher <roschuma@microsoft.com> Co-authored-by: Billy O'Neal <bion@microsoft.com>
21 lines
608 B
CMake
21 lines
608 B
CMake
cmake_minimum_required(VERSION 3.10)
|
|
project(detect_compiler NONE)
|
|
|
|
if(CMAKE_GENERATOR STREQUAL "Ninja" AND CMAKE_SYSTEM_NAME STREQUAL "Windows")
|
|
set(CMAKE_C_COMPILER_WORKS 1)
|
|
set(CMAKE_C_COMPILER_ID_RUN 1)
|
|
set(CMAKE_C_COMPILER_FORCED 1)
|
|
set(CMAKE_CXX_COMPILER_WORKS 1)
|
|
set(CMAKE_CXX_COMPILER_ID_RUN 1)
|
|
set(CMAKE_CXX_COMPILER_FORCED 1)
|
|
endif()
|
|
|
|
enable_language(C)
|
|
enable_language(CXX)
|
|
|
|
file(SHA1 "${CMAKE_CXX_COMPILER}" CXX_HASH)
|
|
file(SHA1 "${CMAKE_C_COMPILER}" C_HASH)
|
|
string(SHA1 COMPILER_HASH "${C_HASH}${CXX_HASH}")
|
|
|
|
message("#COMPILER_HASH#${COMPILER_HASH}")
|