-
Notifications
You must be signed in to change notification settings - Fork 6.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[msquic, msh3] update msquic to 3.4.7, update msh3 to 0.7.0 #42547
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,32 @@ | ||
diff --git a/src/bin/CMakeLists.txt b/src/bin/CMakeLists.txt | ||
index 2376823..d0592a3 100644 | ||
index 18048e3b7..241c75511 100644 | ||
--- a/src/bin/CMakeLists.txt | ||
+++ b/src/bin/CMakeLists.txt | ||
@@ -253,14 +253,14 @@ endif() | ||
if(BUILD_SHARED_LIBS) | ||
target_include_directories(msquic PUBLIC | ||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../inc> | ||
- $<INSTALL_INTERFACE:${include_dest}>) | ||
+ $<INSTALL_INTERFACE:include>) | ||
else() | ||
target_include_directories(msquic_static INTERFACE | ||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../inc> | ||
- $<INSTALL_INTERFACE:${include_dest}>) | ||
+ $<INSTALL_INTERFACE:include>) | ||
target_include_directories(msquic INTERFACE | ||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../inc> | ||
- $<INSTALL_INTERFACE:${include_dest}>) | ||
+ $<INSTALL_INTERFACE:include>) | ||
@@ -260,20 +260,19 @@ if(WIN32) | ||
list(APPEND OTHER_TARGETS MsQuicEtw_Header) | ||
endif() | ||
|
||
set(PUBLIC_HEADERS | ||
@@ -269,11 +269,10 @@ set(PUBLIC_HEADERS | ||
../inc/msquic_posix.h | ||
../inc/quic_sal_stub.h) | ||
|
||
-if(BUILD_SHARED_LIBS) | ||
- install(TARGETS msquic EXPORT msquic DESTINATION lib) | ||
- install(TARGETS msquic msquic_platform inc logging_inc warnings main_binary_link_args ${OTHER_TARGETS} EXPORT msquic DESTINATION lib) | ||
-else() | ||
- install(FILES ${QUIC_STATIC_LIBRARY} DESTINATION lib) | ||
-endif() | ||
+install(TARGETS msquic EXPORT msquic | ||
+install(TARGETS msquic msquic_platform inc logging_inc warnings main_binary_link_args ${OTHER_TARGETS} EXPORT msquic | ||
+ RUNTIME DESTINATION bin | ||
+ ARCHIVE DESTINATION lib | ||
+ LIBRARY DESTINATION lib) | ||
install(FILES ${PUBLIC_HEADERS} DESTINATION include) | ||
|
||
configure_file(msquic-config.cmake.in ${CMAKE_BINARY_DIR}/msquic-config.cmake) | ||
|
||
install(FILES ${CMAKE_BINARY_DIR}/msquic-config.cmake DESTINATION share/msquic) | ||
|
||
-if(BUILD_SHARED_LIBS) | ||
- install(EXPORT msquic DESTINATION share/msquic) | ||
-endif() | ||
+install( | ||
+ EXPORT msquic | ||
+ DESTINATION share/msquic) | ||
|
||
if (MSVC AND NOT QUIC_ENABLE_SANITIZERS AND BUILD_SHARED_LIBS) | ||
target_compile_options(msquic PRIVATE /analyze) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/src/inc/CMakeLists.txt b/src/inc/CMakeLists.txt | ||
index 48edebd1e..55711f558 100644 | ||
--- a/src/inc/CMakeLists.txt | ||
+++ b/src/inc/CMakeLists.txt | ||
@@ -11,7 +11,7 @@ target_compile_options(inc INTERFACE $<$<COMPILE_LANGUAGE:CXX>:${QUIC_CXX_FLAGS} | ||
target_compile_definitions(inc INTERFACE ${QUIC_COMMON_DEFINES}) | ||
target_include_directories(inc INTERFACE | ||
$<BUILD_INTERFACE:${QUIC_INCLUDE_DIR}> | ||
- $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>) | ||
+ $<INSTALL_INTERFACE:include>) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is neither necessary nor useful: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. When I remove the lines in the patch in the upstream, I change this line, because this is the source of the include folder. Thank you for your comments and your help. I appreciate your knowledge. 🙏🏻 |
||
|
||
target_compile_features(inc INTERFACE cxx_std_17) | ||
target_compile_features(inc INTERFACE c_std_11) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test case build pass when manual specify
target_include_directories
. Probably due to it missing the include path.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these lines is now on one other place:
https://github.com/microsoft/msquic/blob/main/src/inc/CMakeLists.txt#L14
I can patch upstream and wait for it release.