Skip to content

Commit

Permalink
Short export name for msquic_platform
Browse files Browse the repository at this point in the history
With the export namespace added, the result is 'msquic::platform'.
  • Loading branch information
dg0yt committed Jan 5, 2025
1 parent 9610803 commit 69d9e29
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/bin/msquic-config.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ include(CMakeFindDependencyMacro)

include("${CMAKE_CURRENT_LIST_DIR}/msquic.cmake")

foreach(_t IN ITEMS msquic msquic_platform)
if(TARGET msquic::${_t} AND NOT TARGET ${_t})
add_library(${_t} ALIAS msquic::${_t})
endif()
endforeach()
# Legacy names
if(NOT TARGET msquic)
add_library(msquic ALIAS msquic::msquic)
endif()
if(NOT TARGET msquic_platform)
add_library(msquic_platform ALIAS msquic::platform)
endif()
1 change: 1 addition & 0 deletions src/platform/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ else()
endif()

add_library(msquic_platform STATIC ${SOURCES})
set_target_properties(msquic_platform PROPERTIES EXPORT_NAME platform)

if("${CX_PLATFORM}" STREQUAL "windows")
target_link_libraries(
Expand Down

0 comments on commit 69d9e29

Please sign in to comment.