Skip to content
Snippets Groups Projects
Commit 78441a0c authored by Alexis Girault's avatar Alexis Girault
Browse files

COMP: copy & remove ftd2xx.lib instead of rename

parent ef0c44d8
No related branches found
No related tags found
No related merge requests found
......@@ -23,11 +23,14 @@ set(copy_ftd2xx_shared_command
${FTD2XX_EXTRACT_DIR}/${ftd2xx_libdir}
${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${CMAKE_CFG_INTDIR}
)
set(copy_ftd2xx_static_command
${CMAKE_COMMAND} -E rename
${CMAKE_COMMAND} -E copy
${FTD2XX_EXTRACT_DIR}/${ftd2xx_libdir}/ftd2xx.lib
${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${CMAKE_CFG_INTDIR}
)
set(remove_ftd2xx_static_command
${CMAKE_COMMAND} -E remove
${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${CMAKE_CFG_INTDIR}/ftd2xx.lib
${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${CMAKE_CFG_INTDIR}/ftd2xx.lib
)
#-----------------------------------------------------------------------------
......@@ -46,6 +49,7 @@ imstk_add_external_project( FTD2XX
INSTALL_COMMAND
${copy_ftd2xx_shared_command}
COMMAND ${copy_ftd2xx_static_command}
COMMAND ${remove_ftd2xx_static_command}
RELATIVE_INCLUDE_PATH "/"
#VERBOSE
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment