Skip to content

Commit 73e40df

Browse files
committed
Remove BSONCXX_ABI_TAG_BUILD_TYPE from compatible interface properties
1 parent 098c57c commit 73e40df

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

cmake/BsoncxxUtil.cmake

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ function(bsoncxx_add_library TARGET OUTPUT_NAME LINK_TYPE)
1919
if(1)
2020
# Enforce ABI compatibility in dependent targets.
2121
set_property(TARGET ${TARGET} APPEND PROPERTY COMPATIBLE_INTERFACE_STRING
22-
BSONCXX_ABI_TAG_BUILD_TYPE
2322
BSONCXX_ABI_TAG_MONGOC_LINK_TYPE
2423
BSONCXX_ABI_TAG_POLYFILL_LIBRARY
2524
)
@@ -35,10 +34,8 @@ function(bsoncxx_add_library TARGET OUTPUT_NAME LINK_TYPE)
3534
# - 'd' for debug.
3635
# - 'r' for release (including RelWithDebInfo and MinSizeRel).
3736
# - 'u' for unknown (e.g. to allow user-defined configurations).
38-
set(build_type $<IF:$<CONFIG:Debug>,d,$<IF:$<OR:$<CONFIG:Release>,$<CONFIG:RelWithDebInfo>,$<CONFIG:MinSizeRel>>,r,u>>)
39-
set_target_properties(${TARGET} PROPERTIES INTERFACE_BSONCXX_ABI_TAG_BUILD_TYPE ${build_type})
40-
string(APPEND abi_tag "-${build_type}")
41-
endif()
37+
# Compatibility is handled via CMake's IMPORTED_CONFIGURATIONS rather than interface properties.
38+
string(APPEND abi_tag "-$<IF:$<CONFIG:Debug>,d,$<IF:$<OR:$<CONFIG:Release>,$<CONFIG:RelWithDebInfo>,$<CONFIG:MinSizeRel>>,r,u>>")
4239

4340
# Link type with libmongoc.
4441
# - 'h' for shared.

0 commit comments

Comments
 (0)