Skip to content

Commit c7380d2

Browse files
committed
Move linking of ICU::uc to the platform-properties target
1 parent b5c37a7 commit c7380d2

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

CMakeLists.txt

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ if (${MSVC})
4040
/utf-8)
4141
else()
4242
target_link_libraries(platform-properties INTERFACE
43-
icuuc icui18n)
43+
icuuc icui18n ICU::uc)
44+
target_include_directories(platform-properties INTERFACE
45+
${ICU_INCLUDE_DIRS}/)
4446
endif()
4547

4648
# alicia-libserver target
@@ -69,10 +71,6 @@ add_library(alicia-libserver STATIC
6971
src/libserver/util/Util.cpp)
7072
target_include_directories(alicia-libserver PUBLIC
7173
include/)
72-
if(NOT WIN32)
73-
target_include_directories(alicia-libserver PRIVATE
74-
${ICU_INCLUDE_DIRS}/)
75-
endif()
7674
target_link_libraries(alicia-libserver PUBLIC
7775
project-properties
7876
platform-properties
@@ -81,9 +79,6 @@ target_link_libraries(alicia-libserver PUBLIC
8179
nlohmann_json::nlohmann_json
8280
yaml-cpp::yaml-cpp
8381
zlibstatic)
84-
if(NOT WIN32)
85-
target_link_libraries(alicia-libserver PUBLIC ICU::uc)
86-
endif()
8782

8883
# alicia-server target
8984
add_executable(alicia-server

0 commit comments

Comments
 (0)