Browse Source

fixed copying dlls on windows

cl-refactor
ethdev 10 years ago
parent
commit
88393195b4
  1. 5
      cmake/EthExecutableHelper.cmake

5
cmake/EthExecutableHelper.cmake

@ -92,11 +92,11 @@ macro(eth_install_executable EXECUTABLE)
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
# copy all dlls to executable directory
file (GLOB DLLS ${CMAKE_DEPENDENCY_INSTALL_DIR}/bin/*.dll)
file (GLOB DLLS ${ETH_DEPENDENCY_INSTALL_DIR}/bin/*.dll)
foreach(DLL ${DLLS})
add_custom_command(TARGET ${EXECUTABLE} POST_BUILD
COMMAND cmake -E copy ${DLL} $<TARGET_FILE_DIR:${EXECUTABLE}>
COMMAND cmake -E copy "${DLL}" "$<TARGET_FILE_DIR:${EXECUTABLE}>"
)
endforeach()
@ -107,6 +107,7 @@ macro(eth_install_executable EXECUTABLE)
)
install( TARGETS ${EXECUTABLE} RUNTIME DESTINATION bin)
else()
install( TARGETS ${EXECUTABLE} RUNTIME DESTINATION bin)
endif ()

Loading…
Cancel
Save