Skip to content

Commit

Permalink
seperat link command for Winsock
Browse files Browse the repository at this point in the history
  • Loading branch information
Davknapp committed Dec 17, 2024
1 parent 15d088b commit 179374f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@ target_include_directories(p4est PUBLIC
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/src>
$<BUILD_INTERFACE:${PROJECT_BINARY_DIR}/include>
$<INSTALL_INTERFACE:include>)
target_link_libraries(p4est PUBLIC SC::SC $<$<BOOL:${P4EST_HAVE_WINSOCK2_H}>:${WINSOCK_LIBRARIES}>)
target_link_libraries(p4est PUBLIC SC::SC )

if (P4EST_HAVE_WINSOCK2_H)
target_linke_libaries(p4est PUBLIC ${WINSOCK_LIBRARIES})
endif()

# imported target, for use from parent projects
add_library(P4EST::P4EST INTERFACE IMPORTED GLOBAL)
Expand Down

0 comments on commit 179374f

Please sign in to comment.