cmake: Propagate WITH_FINAL to abimap conditionally

Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Pavol Žáčik <pzacik@redhat.com>
(cherry picked from commit b2abcf8534)
This commit is contained in:
Jakub Jelen
2026-01-22 22:47:30 +01:00
parent 1887c9dbcd
commit c4681304cc

View File

@@ -168,6 +168,10 @@ if (WITH_SYMBOL_VERSIONING AND ABIMAP_FOUND)
set(ALLOW_ABI_BREAK "BREAK_ABI") set(ALLOW_ABI_BREAK "BREAK_ABI")
endif() endif()
if (WITH_FINAL)
set(FINAL "FINAL")
endif()
# Target we can depend on in 'make dist' # Target we can depend on in 'make dist'
set(_SYMBOL_TARGET "${PROJECT_NAME}.map") set(_SYMBOL_TARGET "${PROJECT_NAME}.map")
@@ -180,7 +184,7 @@ if (WITH_SYMBOL_VERSIONING AND ABIMAP_FOUND)
RELEASE_NAME_VERSION ${PROJECT_NAME}_${LIBRARY_VERSION} RELEASE_NAME_VERSION ${PROJECT_NAME}_${LIBRARY_VERSION}
CURRENT_MAP ${MAP_PATH} CURRENT_MAP ${MAP_PATH}
COPY_TO ${MAP_PATH} COPY_TO ${MAP_PATH}
FINAL ${FINAL}
${ALLOW_ABI_BREAK}) ${ALLOW_ABI_BREAK})
# Write the current version to the source # Write the current version to the source