Try to fix issues on build server related to copy of oct files

p4#: 21626
This commit is contained in:
Magne Sjaastad 2013-05-15 12:50:32 +02:00
parent 97c3a330f6
commit b1e73a4eb7

View File

@ -115,10 +115,13 @@ else()
# directly from the location of the ResInsight binaries
if (MSVC)
foreach (oct_bin ${OCTAVE_BINARY_OCT_FILES})
get_filename_component(Filename "${oct_bin}" NAME)
add_custom_command(TARGET octave_plugins POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different
"${oct_bin}"
"${CMAKE_CURRENT_BINARY_DIR}/../ApplicationCode/$<CONFIGURATION>"
"${CMAKE_CURRENT_BINARY_DIR}/../ApplicationCode/$<CONFIGURATION>/${Filename}"
)
endforeach( oct_bin )
endif(MSVC)