Files
qt6-migration-pipeline/external/rti_connext_dds-7.7.0/resource/cmake/ConnextDdsLog.cmake
T
torsten 77c67c12ca Execute the same instructions but now for tools in folders you are getti
Entire-Metadata: .entire/metadata/fb87247f-2a75-407e-b336-cbc8c20ba5a6
Entire-Session: fb87247f-2a75-407e-b336-cbc8c20ba5a6
Entire-Strategy: manual-commit
2026-09-24 16:24:51 +00:00

119 lines
2.8 KiB
CMake

# (c) 2018 Copyright, Real-Time Innovations, Inc. All rights reserved.
# No duplications, whole or partial, manual or electronic, may be made
# without express written permission. Any such copies, or revisions thereof,
# must display this notice unaltered.
# This code contains trade secrets of Real-Time Innovations, Inc.
#[[.rst:
.. _connextdds_log:
ConnextDds
----------
connextdds_log_error
^^^^^^^^^^^^^^^^^^^^
Prints an error message and stops the CMake execution::
connextdds_log_error(
MESSAGE <message>
TYPE <type>
)
The printed message follows this format::
[rti::error::<type>]
Arguments:
``MESSAGE`` (mandatory).
Message to show.
``TYPE`` (mandatory).
Error type to log.
connextdds_unsupported_link_mode
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Prints an error message for a unsupported linking mode::
connextdds_unsupported_link_mode()
connextdds_log_unsupported_licensed_mode
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Prints an error message for unsupported licensed build mode::
connextdds_log_unsupported_licensed_mode()
connextdds_unsupported_generator
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Prints an error message for unsupported CMake generators::
connextdds_unsupported_generator()
#]]
include(CMakeParseArguments)
include(ConnextDdsArgumentChecks)
include(ConnextDdsLogMessage)
# File used to exchange detailed information with the automation
set(
CONNEXTDDS_BUILD_CONFIGURATION_ERROR_FILE
"${CMAKE_BINARY_DIR}/UNSUPPORTED_CONFIGURATION"
)
function(connextdds_log_error)
set(single_value_args MESSAGE TYPE)
cmake_parse_arguments(
_LOG
"" "${single_value_args}" ""
${ARGN}
)
connextdds_log_message(
FATAL_ERROR "[rti::error::${_LOG_TYPE}] ${_LOG_MESSAGE}")
endfunction()
function(connextdds_unsupported_link_mode)
if(${BUILD_SHARED_LIBS})
set(link_mode "dynamic")
else()
set(link_mode "static")
endif()
set(message "The architecture does not support ${link_mode} builds")
file(WRITE "${CONNEXTDDS_BUILD_CONFIGURATION_ERROR_FILE}" ${message})
connextdds_log_error(
MESSAGE "${message}"
TYPE "unsupported-link-mode")
endfunction()
function(connextdds_unsupported_licensed_mode)
set(message "The architecture does not support licensed builds")
file(WRITE "${CONNEXTDDS_BUILD_CONFIGURATION_ERROR_FILE}" ${message})
connextdds_log_error(
MESSAGE "${message}"
TYPE "unsupported-licensed-mode")
endfunction()
function(connextdds_unsupported_generator)
set(message
"The architecture does not support the generator "
"${CMAKE_GENERATOR}")
file(WRITE "${CONNEXTDDS_BUILD_CONFIGURATION_ERROR_FILE}" ${message})
connextdds_log_error(
MESSAGE "${message}"
TYPE "generator")
endfunction()