Revision 2a06c91fe004fc180e298ae1e61b81c03cc3f5aa authored by Marcel Pi on 27 March 2024, 10:21:28 UTC, committed by Marcel Pi on 27 March 2024, 10:21:28 UTC
1 parent 9bc6e1c
Util.cmake
# Similar to configure_file, but also expands variables
# that are set at generate time, like generator expressions.
macro (carla_two_step_configure_file DESTINATION SOURCE)
carla_message ("Configuring file ${DESTINATION}")
# Configure-time step; evaluate variables:
configure_file (${SOURCE} ${DESTINATION})
# Generate-time step; evaluate generator expressions:
file (GENERATE OUTPUT ${DESTINATION} INPUT ${DESTINATION})
endmacro ()
# message wrapper for normal messages.
function (carla_message)
message (STATUS "CARLA: " ${ARGN})
endfunction ()
# message wrapper for warnings.
macro (carla_warning)
message (WARNING ${ARGN})
endmacro ()
# message wrapper for errors.
function (carla_error)
message (FATAL_ERROR ${ARGN})
endfunction ()
macro (carla_string_option NAME DESCRIPTION VALUE)
set (${NAME} "${VALUE}" CACHE STRING ${DESCRIPTION})
endmacro ()
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...