Skip to content

Commit 2cb89a9

Browse files
authored
Merge branch 'main' into eng/genccode-data-build
2 parents fa16998 + 4dece97 commit 2cb89a9

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

shared/ICU/CMakeLists.txt

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -547,14 +547,6 @@ target_link_libraries(icuin PRIVATE
547547
set_target_properties(icuin PROPERTIES
548548
OUTPUT_NAME icuin${PROJECT_VERSION_MAJOR})
549549

550-
if(DEFINED BUILD_DATA AND NOT BUILD_DATA)
551-
install(TARGETS icuuc icuin
552-
ARCHIVE DESTINATION ${CMAKE_INSTALL_FULL_LIBDIR}
553-
LIBRARY DESTINATION ${CMAKE_INSTALL_FULL_LIBDIR}
554-
RUNTIME DESTINATION ${CMAKE_INSTALL_FULL_BINDIR})
555-
return()
556-
endif()
557-
558550
if(BUILD_TOOLS)
559551
add_library(icutu
560552
source/tools/toolutil/collationinfo.cpp
@@ -656,10 +648,14 @@ if(BUILD_TOOLS)
656648

657649
set(ICU_TOOLS_DIR ${CMAKE_CURRENT_BINARY_DIR})
658650
elseif(ICU_TOOLS_DIR)
651+
if(CMAKE_HOST_SYSTEM_NAME MATCHES Windows)
652+
set(CMAKE_HOST_EXECUTABLE_SUFFIX .exe)
653+
endif()
654+
659655
foreach(tool gencnval;gencfu;makeconv;genbrk;gensprep;gendict;icupkg;genrb;pkgdata;genccode)
660656
add_executable(${tool} IMPORTED)
661657
set_target_properties(${tool} PROPERTIES
662-
IMPORTED_LOCATION ${ICU_TOOLS_DIR}/${tool}${CMAKE_EXECUTABLE_SUFFIX})
658+
IMPORTED_LOCATION ${ICU_TOOLS_DIR}/${tool}${CMAKE_HOST_EXECUTABLE_SUFFIX})
663659
endforeach()
664660
else()
665661
include(ExternalProject)

0 commit comments

Comments
 (0)