https://github.com/Kitware/CMake
Revision 96ea613f169cedc4087b536d95ca6c128b8f4eb6 authored by Brad King on 27 October 2020, 11:05:11 UTC, committed by Kitware Robot on 27 October 2020, 11:05:18 UTC
2b0d3c3524 CUDA: Use MSVC version to determine supported C++ standard levels Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5423
Tip revision: 96ea613f169cedc4087b536d95ca6c128b8f4eb6 authored by Brad King on 27 October 2020, 11:05:11 UTC
Merge topic 'correct_msvc_cuda_flag_warning' into release-3.19
Merge topic 'correct_msvc_cuda_flag_warning' into release-3.19
Tip revision: 96ea613
ExternalProject-verify.cmake.in
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
# file Copyright.txt or https://cmake.org/licensing for details.
cmake_minimum_required(VERSION 3.5)
if("@LOCAL@" STREQUAL "")
message(FATAL_ERROR "LOCAL can't be empty")
endif()
if(NOT EXISTS "@LOCAL@")
message(FATAL_ERROR "File not found: @LOCAL@")
endif()
if("@ALGO@" STREQUAL "")
message(WARNING "File will not be verified since no URL_HASH specified")
return()
endif()
if("@EXPECT_VALUE@" STREQUAL "")
message(FATAL_ERROR "EXPECT_VALUE can't be empty")
endif()
message(STATUS "verifying file...
file='@LOCAL@'")
file("@ALGO@" "@LOCAL@" actual_value)
if(NOT "${actual_value}" STREQUAL "@EXPECT_VALUE@")
message(FATAL_ERROR "error: @ALGO@ hash of
@LOCAL@
does not match expected value
expected: '@EXPECT_VALUE@'
actual: '${actual_value}'
")
endif()
message(STATUS "verifying file... done")
Computing file changes ...