1
0
Fork 0

properly install the ICU file on windows to the build-target folders

This commit is contained in:
Wilfried Goesgens 2017-02-24 13:37:09 +01:00
parent a767cba1d5
commit 1895aa333d
1 changed files with 18 additions and 8 deletions

View File

@ -578,14 +578,24 @@ set(ICU_DT ${ICU_DT} PARENT_SCOPE)
set(ICU_DT_DEST "icudtl.dat" )
set(ICU_DT_DEST ${ICU_DT_DEST} PARENT_SCOPE)
configure_file(
"${ICU_DT}"
"${CMAKE_BINARY_DIR}/bin/$<CONFIG>/${ICU_DT_DEST}"
COPYONLY)
configure_file(
"${ICU_DT}"
"${CMAKE_BINARY_DIR}/tests/$<CONFIG>/${ICU_DT_DEST}"
COPYONLY)
if (MSVC)
add_custom_command(
TARGET v8_build POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy ${ICU_DT} ${CMAKE_BINARY_DIR}/bin/$<CONFIG>/${ICU_DT_DEST})
add_custom_command(
TARGET v8_build POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy ${ICU_DT} ${CMAKE_BINARY_DIR}/tests/$<CONFIG>/${ICU_DT_DEST})
else()
add_custom_command(
TARGET v8_build POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy ${ICU_DT} ${CMAKE_BINARY_DIR}/bin/${ICU_DT_DEST})
add_custom_command(
TARGET v8_build POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy ${ICU_DT} ${CMAKE_BINARY_DIR}/tests/${ICU_DT_DEST})
endif()
if (NOT WIN32)
add_custom_target(nonthinV8
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/../../Installation/archive-de-thinner.sh ${V8_REL_TARGET_PATH}