|
@@ -1033,7 +1033,7 @@ macro (setup_executable)
|
|
|
add_custom_command (TARGET ${TARGET_NAME} POST_BUILD COMMAND scp $<TARGET_FILE:${TARGET_NAME}> ${URHO3D_SCP_TO_TARGET} || exit 0
|
|
add_custom_command (TARGET ${TARGET_NAME} POST_BUILD COMMAND scp $<TARGET_FILE:${TARGET_NAME}> ${URHO3D_SCP_TO_TARGET} || exit 0
|
|
|
COMMENT "Scp-ing ${TARGET_NAME} executable to target system")
|
|
COMMENT "Scp-ing ${TARGET_NAME} executable to target system")
|
|
|
endif ()
|
|
endif ()
|
|
|
- if (DIRECT3D_DLL)
|
|
|
|
|
|
|
+ if (DIRECT3D_DLL AND NOT URHO3D_OPENGL)
|
|
|
# Make a copy of the D3D DLL to the runtime directory in the build tree
|
|
# Make a copy of the D3D DLL to the runtime directory in the build tree
|
|
|
add_custom_command (TARGET ${TARGET_NAME} POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy_if_different ${DIRECT3D_DLL} ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
|
|
add_custom_command (TARGET ${TARGET_NAME} POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy_if_different ${DIRECT3D_DLL} ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
|
|
|
endif ()
|
|
endif ()
|