File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,7 +5,10 @@ project(alicia-server)
55option (BUILD_TESTS "Build tests" ON )
66
77find_package (Boost 1.80.0 MODULE )
8- find_package (ICU COMPONENTS uc REQUIRED )
8+
9+ if (NOT WIN32 )
10+ find_package (ICU COMPONENTS uc REQUIRED )
11+ endif ()
912
1013add_subdirectory (3rd-party SYSTEM )
1114
@@ -65,18 +68,22 @@ add_library(alicia-libserver STATIC
6568 src/libserver/util/Stream.cpp
6669 src/libserver/util/Util.cpp )
6770target_include_directories (alicia-libserver PUBLIC
68- include /
69- PRIVATE
71+ include / )
72+ if (NOT WIN32 )
73+ target_include_directories (alicia-libserver PRIVATE
7074 ${ICU_INCLUDE_DIRS} / )
75+ endif ()
7176target_link_libraries (alicia-libserver PUBLIC
7277 project-properties
7378 platform-properties
7479 spdlog::spdlog
7580 Boost::headers
7681 nlohmann_json::nlohmann_json
7782 yaml-cpp::yaml-cpp
78- zlibstatic
79- ICU::uc )
83+ zlibstatic )
84+ if (NOT WIN32 )
85+ target_link_libraries (alicia-libserver PUBLIC ICU::uc )
86+ endif ()
8087
8188# alicia-server target
8289add_executable (alicia-server
You can’t perform that action at this time.
0 commit comments