mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
binpac: Only adding subdir if running standalone
This commit is contained in:
parent
9a4e01e634
commit
d5f2c9c3a8
1 changed files with 5 additions and 0 deletions
|
@ -106,6 +106,11 @@ set(binpac_SRCS
|
|||
add_executable(binpac ${binpac_SRCS})
|
||||
|
||||
if ( MSVC )
|
||||
# If building separately from zeek, we need to add the libunistd subdirectory so
|
||||
# that linking doesn't fail.
|
||||
if ("${CMAKE_PROJECT_NAME}" STREQUAL "BinPAC")
|
||||
add_subdirectory(auxil/libunistd EXCLUDE_FROM_ALL)
|
||||
endif()
|
||||
target_link_libraries(binpac PRIVATE libunistd)
|
||||
endif()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue