mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
bifcl: Only adding subdir if running standalone
This commit is contained in:
parent
c6042154b9
commit
4352f0c0bb
1 changed files with 5 additions and 0 deletions
|
@ -53,6 +53,11 @@ set(bifcl_SRCS
|
||||||
add_executable(bifcl ${bifcl_SRCS})
|
add_executable(bifcl ${bifcl_SRCS})
|
||||||
|
|
||||||
if (MSVC)
|
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 "BifCl")
|
||||||
|
add_subdirectory(auxil/libunistd EXCLUDE_FROM_ALL)
|
||||||
|
endif()
|
||||||
target_link_libraries(bifcl PRIVATE libunistd)
|
target_link_libraries(bifcl PRIVATE libunistd)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue