We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45a5c45 commit 9ae81daCopy full SHA for 9ae81da
shared/ICU/CMakeLists.txt
@@ -651,10 +651,14 @@ if(BUILD_TOOLS)
651
652
set(ICU_TOOLS_DIR ${CMAKE_CURRENT_BINARY_DIR})
653
elseif(ICU_TOOLS_DIR)
654
+ if(CMAKE_HOST_SYSTEM_NAME MATCHES Windows)
655
+ set(CMAKE_HOST_EXECUTABLE_SUFFIX .exe)
656
+ endif()
657
+
658
foreach(tool gencnval;gencfu;makeconv;genbrk;gensprep;gendict;icupkg;genrb;pkgdata)
659
add_executable(${tool} IMPORTED)
660
set_target_properties(${tool} PROPERTIES
- IMPORTED_LOCATION ${ICU_TOOLS_DIR}/${tool}${CMAKE_EXECUTABLE_SUFFIX})
661
+ IMPORTED_LOCATION ${ICU_TOOLS_DIR}/${tool}${CMAKE_HOST_EXECUTABLE_SUFFIX})
662
endforeach()
663
else()
664
include(ExternalProject)
0 commit comments