@@ -233,22 +233,22 @@ configure_file (
233233 "${PROJECT_BINARY_DIR} /src/mongocrypt-config.h"
234234)
235235
236- # Define the mlib target, which is private and header-only. It is not exported
236+ # Define the mc- mlib target, which is private and header-only. It is not exported
237237# nor are its headers installed.
238- add_library (_mongo-mlib INTERFACE )
239- add_library (mongo::mlib ALIAS _mongo-mlib)
240- list (APPEND MLIB_DEFINITIONS MLIB_USER)
238+ add_library (_mongo-mc- mlib INTERFACE )
239+ add_library (mongo::mc- mlib ALIAS _mongo-mc -mlib)
240+ list (APPEND MCMLIB_DEFINITIONS MLIB_USER)
241241CHECK_INCLUDE_FILE (strings .h HAVE_STRINGS_H)
242242if (HAVE_STRINGS_H)
243- list (APPEND MLIB_DEFINITIONS MLIB_HAVE_STRINGS_H)
243+ list (APPEND MCMLIB_DEFINITIONS MLIB_HAVE_STRINGS_H)
244244endif ()
245245set_property (
246- TARGET _mongo-mlib
246+ TARGET _mongo-mc- mlib
247247 APPEND PROPERTY INTERFACE_COMPILE_DEFINITIONS
248- ${MLIB_DEFINITIONS }
248+ ${MCMLIB_DEFINITIONS }
249249 )
250250set_property (
251- TARGET _mongo-mlib
251+ TARGET _mongo-mc- mlib
252252 APPEND PROPERTY INTERFACE_INCLUDE_DIRECTORIES
253253 "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR} /src>"
254254 )
@@ -271,7 +271,7 @@ target_link_libraries (
271271 PRIVATE
272272 _mongocrypt::libbson_for_shared
273273 kms_message_static
274- $<BUILD_INTERFACE:mongo::mlib>
274+ $<BUILD_INTERFACE:mongo::mc- mlib>
275275 PUBLIC
276276 mongocrypt::platform
277277 ${maybe_dfp_library}
@@ -327,7 +327,7 @@ target_link_libraries (
327327 PRIVATE
328328 _mongocrypt::libbson_for_static
329329 kms_message_static
330- $<BUILD_INTERFACE:mongo::mlib>
330+ $<BUILD_INTERFACE:mongo::mc- mlib>
331331 PUBLIC
332332 mongocrypt::platform
333333 ${maybe_dfp_library}
@@ -507,7 +507,7 @@ set (TEST_MONGOCRYPT_SOURCES
507507add_executable (test -mongocrypt ${TEST_MONGOCRYPT_SOURCES} )
508508# Use the static version since it allows the test binary to use private symbols
509509target_include_directories (test -mongocrypt PRIVATE ./src "${CMAKE_CURRENT_SOURCE_DIR} /kms-message/src" )
510- target_link_libraries (test -mongocrypt PRIVATE _mongocrypt::libbson_for_static mongocrypt_static mongo::mlib)
510+ target_link_libraries (test -mongocrypt PRIVATE _mongocrypt::libbson_for_static mongocrypt_static mongo::mc- mlib)
511511target_include_directories (test -mongocrypt PRIVATE "${CMAKE_CURRENT_LIST_DIR} /test" )
512512target_compile_definitions (test -mongocrypt PRIVATE
513513 # Set a definition so that testcases can know where test-mongocrypt.exe was written to
@@ -525,9 +525,9 @@ add_test (
525525 )
526526
527527foreach (test IN ITEMS path str)
528- add_executable (mlib.${test} .test src/mlib/${test} .test .c)
528+ add_executable (mlib.${test} .test src/mc- mlib/${test} .test .c)
529529 add_test (mlib.${test} mlib.${test} .test )
530- target_link_libraries (mlib.${test} .test PRIVATE mongo::mlib)
530+ target_link_libraries (mlib.${test} .test PRIVATE mongo::mc- mlib)
531531endforeach ()
532532
533533if ("cxx_relaxed_constexpr" IN_LIST CMAKE_CXX_COMPILE_FEATURES)
@@ -545,7 +545,7 @@ if ("cxx_relaxed_constexpr" IN_LIST CMAKE_CXX_COMPILE_FEATURES)
545545 target_compile_features ("${exe_name} " PRIVATE cxx_relaxed_constexpr)
546546 target_link_libraries ("${exe_name} " PRIVATE
547547 mongocrypt
548- mongo::mlib
548+ mongo::mc- mlib
549549 ${maybe_dfp_library}
550550 _mongocrypt::libbson_for_static
551551 )
@@ -555,7 +555,7 @@ endif ()
555555
556556if ("cxx_std_20" IN_LIST CMAKE_CXX_COMPILE_FEATURES)
557557 add_executable (csfle-markup src/csfle-markup.cpp)
558- target_link_libraries (csfle-markup PRIVATE mongocrypt_static _mongocrypt::libbson_for_static mongo::mlib)
558+ target_link_libraries (csfle-markup PRIVATE mongocrypt_static _mongocrypt::libbson_for_static mongo::mc- mlib)
559559 target_compile_features (csfle-markup PRIVATE cxx_std_20)
560560endif ()
561561
@@ -606,8 +606,8 @@ install (
606606 INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
607607)
608608
609- # This export set is not installed, and is only to allow export() of the mlib-using targets
610- install (TARGETS _mongo-mlib EXPORT _exports_for_export)
609+ # This export set is not installed, and is only to allow export() of the mc- mlib-using targets
610+ install (TARGETS _mongo-mc- mlib EXPORT _exports_for_export)
611611export (EXPORT _exports_for_export)
612612
613613install (
0 commit comments