mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-29 20:23:41 +08:00
9ddf284ece
Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
19 lines
496 B
CMake
19 lines
496 B
CMake
cmake_minimum_required(VERSION 3.10)
|
|
project(detect_compiler NONE)
|
|
|
|
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)
|
|
|
|
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}")
|