Skip to content

Commit

Permalink
mingw fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bscottm committed Feb 3, 2025
1 parent b2f3346 commit 9a264db
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cmake/dep-link.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,10 @@ if (WITH_NETWORK)
## the libpcap-devel's libraries are found.
set(network_runtime USE_SHARED)

execute_process(
COMMAND ${CMAKE_COMMAND} -E make_directory "${CMAKE_BINARY_DIR}/include"
)

set(pcap_platform)
if (WITH_PCAP)
find_package(PCAP)
Expand Down Expand Up @@ -476,8 +480,6 @@ if (WITH_NETWORK)
find_path(TAPWINDOWS_HEADER
NAMES
tap-windows.h
HINTS
ENV TAPWINDOWS_DIR
PATHS
$(CMAKE_BINARY_DIR)/include
)
Expand Down Expand Up @@ -527,6 +529,7 @@ if (WITH_NETWORK)
endif ()

simh_network_compile_definitions(PUBLIC WITH_OPENVPN_TAPTUN)
simh_network_include_directories(PUBLIC ${CMAKE_BINARY_DIR}/include)
simh_network_sources(sim_networking/openvpn/listintfs.c sim_networking/openvpn/opentap.c)
endif ()

Expand Down

0 comments on commit 9a264db

Please sign in to comment.