Skip to content

Commit

Permalink
Simplify cmake config chainloading (#4727)
Browse files Browse the repository at this point in the history
* CMake: Remove stray config file

* Simplify cmake config chainloading
  • Loading branch information
dg0yt authored Dec 31, 2024
1 parent 114e2cf commit e909d8a
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 11 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
5 changes: 0 additions & 5 deletions src/bin/msquic-config-unix.cmake.in

This file was deleted.

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 e909d8a

Please sign in to comment.