File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -547,14 +547,6 @@ target_link_libraries(icuin PRIVATE
547547set_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-
558550if (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} )
658650elseif (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 ()
664660else ()
665661 include (ExternalProject)
You can’t perform that action at this time.
0 commit comments