Fixed cmake scripts

This commit is contained in:
Elad Solomon 2022-08-22 17:15:10 +03:00 committed by Tomer Lev
parent b7cbd946d6
commit af656a235b

View file

@ -88,6 +88,9 @@ if ( MSVC )
set(LIBKQUEUE_INCLUDE_DIRS ${kqueue_INCLUDES}) set(LIBKQUEUE_INCLUDE_DIRS ${kqueue_INCLUDES})
set(LIBKQUEUE_LIBRARIES ${kqueue_LIBS}) set(LIBKQUEUE_LIBRARIES ${kqueue_LIBS})
# Set CAres
find_package(c-ares)
add_subdirectory(auxil/libunistd) add_subdirectory(auxil/libunistd)
set(UNISTD_INCLUDES ${CMAKE_SOURCE_DIR}/auxil/libunistd/unistd ${CMAKE_SOURCE_DIR}/auxil/libunistd/regex) set(UNISTD_INCLUDES ${CMAKE_SOURCE_DIR}/auxil/libunistd/unistd ${CMAKE_SOURCE_DIR}/auxil/libunistd/regex)
include_directories(BEFORE ${UNISTD_INCLUDES}) include_directories(BEFORE ${UNISTD_INCLUDES})
@ -100,6 +103,9 @@ if ( MSVC )
set(BROKER_DISABLE_TESTS true) set(BROKER_DISABLE_TESTS true)
set(BROKER_DISABLE_DOC_EXAMPLES true) set(BROKER_DISABLE_DOC_EXAMPLES true)
add_definitions(-DDOCTEST_CONFIG_NO_MULTITHREADING) add_definitions(-DDOCTEST_CONFIG_NO_MULTITHREADING)
# Disable Spicy as it is not yet supported in Windows.
set(DISABLE_SPICY true)
else () else ()
include(GNUInstallDirs) include(GNUInstallDirs)
endif () endif ()