Fix LibCarla's Version.h.in (file configured by CMake to set the library version). (#7647)
Co-authored-by: Marcel Pi <marcelpi97@gmail.com>
This commit is contained in:
parent
e23f437dc2
commit
bca3b5abef
|
@ -1,12 +1,12 @@
|
||||||
# Similar to configure_file, but also expands variables
|
# Similar to configure_file, but also expands variables
|
||||||
# that are set at generate time, like generator expressions.
|
# that are set at generate time, like generator expressions.
|
||||||
macro (carla_two_step_configure_file DESTINATION SOURCE)
|
function (carla_two_step_configure_file DESTINATION SOURCE)
|
||||||
carla_message ("Configuring file ${DESTINATION}")
|
carla_message ("Configuring file ${DESTINATION}")
|
||||||
# Configure-time step; evaluate variables:
|
# Configure-time step; evaluate variables:
|
||||||
configure_file (${SOURCE} ${DESTINATION} @ONLY)
|
configure_file (${SOURCE} ${DESTINATION} @ONLY)
|
||||||
# Generate-time step; evaluate generator expressions:
|
# Generate-time step; evaluate generator expressions:
|
||||||
file (GENERATE OUTPUT ${DESTINATION} INPUT ${DESTINATION})
|
file (GENERATE OUTPUT ${DESTINATION} INPUT ${DESTINATION})
|
||||||
endmacro ()
|
endfunction ()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
namespace carla {
|
namespace carla {
|
||||||
|
|
||||||
constexpr const char *version() {
|
constexpr const char *version() {
|
||||||
return "${CARLA_VERSION}";
|
return "@CARLA_VERSION@";
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace carla
|
} // namespace carla
|
||||||
|
|
Loading…
Reference in New Issue