Files
Lucina3DS/externals/cryptopp-cmake/test/integration/cmake/CheckFileExists.cmake
2025-02-06 22:24:29 +08:00

13 lines
570 B
CMake

# ===-----------------------------------------------------------------------===#
# Distributed under the 3-Clause BSD License. See accompanying file LICENSE or
# copy at https://opensource.org/licenses/BSD-3-Clause).
# SPDX-License-Identifier: BSD-3-Clause
# ===-----------------------------------------------------------------------===#
# Helper script to check if a file exists at build time
message(STATUS "Checking if installed file \"${FILE_TO_CHECK}\" exists")
if(NOT EXISTS ${FILE_TO_CHECK})
message(FATAL_ERROR "\"${FILE_TO_CHECK}\" doesn't exist.")
endif()