Skip to content

Commit 4c12ddf

Browse files
committed
[icu] not building BUILD_DATA should still have an install target
Also, validate it's set before checking it.
1 parent 955e5a9 commit 4c12ddf

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

shared/ICU/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,11 @@ target_link_libraries(icuin PRIVATE
546546
set_target_properties(icuin PROPERTIES
547547
OUTPUT_NAME icuin${PROJECT_VERSION_MAJOR})
548548

549-
if(NOT BUILD_DATA)
549+
if(DEFINED BUILD_DATA AND NOT BUILD_DATA)
550+
install(TARGETS icuuc icuin
551+
ARCHIVE DESTINATION ${CMAKE_INSTALL_FULL_LIBDIR}
552+
LIBRARY DESTINATION ${CMAKE_INSTALL_FULL_LIBDIR}
553+
RUNTIME DESTINATION ${CMAKE_INSTALL_FULL_BINDIR})
550554
return()
551555
endif()
552556

0 commit comments

Comments
 (0)