From 4c12ddfd870ad9bc80057e13a3169f42975f5d7b Mon Sep 17 00:00:00 2001 From: Alex Lorenz Date: Tue, 7 May 2024 13:09:09 -0700 Subject: [PATCH] [icu] not building BUILD_DATA should still have an install target Also, validate it's set before checking it. --- shared/ICU/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/shared/ICU/CMakeLists.txt b/shared/ICU/CMakeLists.txt index b6b121f8..a8cd1353 100644 --- a/shared/ICU/CMakeLists.txt +++ b/shared/ICU/CMakeLists.txt @@ -546,7 +546,11 @@ target_link_libraries(icuin PRIVATE set_target_properties(icuin PROPERTIES OUTPUT_NAME icuin${PROJECT_VERSION_MAJOR}) -if(NOT BUILD_DATA) +if(DEFINED BUILD_DATA AND NOT BUILD_DATA) + install(TARGETS icuuc icuin + ARCHIVE DESTINATION ${CMAKE_INSTALL_FULL_LIBDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_FULL_LIBDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_FULL_BINDIR}) return() endif()