Skip to content

Commit

Permalink
Simplify cmake config chainloading
Browse files Browse the repository at this point in the history
  • Loading branch information
dg0yt committed Dec 31, 2024
1 parent 94404e8 commit 20e73c2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
3 changes: 0 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,6 @@ elseif (UNIX)
endif()
message(STATUS "QUIC Platform: ${CX_PLATFORM}")

set(FILENAME_DEP_REPLACE "get_filename_component(SELF_DIR \"$\{CMAKE_CURRENT_LIST_FILE\}\" PATH)")
set(SELF_DIR "$\{SELF_DIR\}")

enable_testing()

# Set the default TLS method for each platform.
Expand Down
2 changes: 1 addition & 1 deletion src/bin/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ else()
endif()
install(FILES ${PUBLIC_HEADERS} DESTINATION include)

configure_file(msquic-config.cmake.in ${CMAKE_BINARY_DIR}/msquic-config.cmake)
configure_file(msquic-config.cmake.in ${CMAKE_BINARY_DIR}/msquic-config.cmake @ONLY)

install(FILES ${CMAKE_BINARY_DIR}/msquic-config.cmake DESTINATION share/msquic)

Expand Down
3 changes: 1 addition & 2 deletions src/bin/msquic-config.cmake.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
include(CMakeFindDependencyMacro)
@FILENAME_DEP_REPLACE@

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

foreach(_t IN ITEMS msquic msquic_platform)
if(TARGET msquic::${_t} AND NOT TARGET ${_t})
Expand Down

0 comments on commit 20e73c2

Please sign in to comment.