Files
openvino/cmake/developer_package/debug.cmake
T

18 lines
441 B
CMake
Raw Normal View History

2023-01-16 11:02:17 +04:00
# Copyright (C) 2018-2023 Intel Corporation
2018-10-16 13:45:03 +03:00
# SPDX-License-Identifier: Apache-2.0
#
2022-10-15 01:15:03 +04:00
function(debug_message)
if(CMAKE_VERBOSE_MAKEFILE)
2018-10-16 13:45:03 +03:00
message(${ARGV})
endif()
endfunction()
function(clean_message type)
2022-10-15 01:15:03 +04:00
string(REPLACE ";" "" output_string "${ARGN}")
execute_process(COMMAND ${CMAKE_COMMAND} -E echo "${output_string}")
if(${ARGV0} STREQUAL "FATAL_ERROR")
message (FATAL_ERROR)
endif()
2018-10-16 13:45:03 +03:00
endfunction()