Skip to content
Snippets Groups Projects
Commit bf5f9a1b authored by Harald Scheirich's avatar Harald Scheirich
Browse files

BUG: Fix error in install path for innerbuild target

parent 2ae1ca61
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,6 @@
# Add External Project
#-----------------------------------------------------------------------------
set(iMSTKData_PREFIX ${CMAKE_BINARY_DIR}/External/iMSTKData)
set(iMSTKData_SOURCE ${iMSTKData_PREFIX}/src/Data CACHE INTERNAL "")
find_package(GitLFS QUIET)
if (NOT GitLFS_FOUND)
......
......@@ -329,9 +329,10 @@ if (${PROJECT_NAME}_BUILD_TESTING OR ${PROJECT_NAME}_BUILD_EXAMPLES)
add_definitions( -DiMSTK_DATA_ROOT=\"${CMAKE_INSTALL_PREFIX}/data/\")
endif()
# Note if the target name or data name changes this has to be changed as well
add_custom_target(CopyDataFiles ALL
COMMAND ${CMAKE_COMMAND} -E copy_directory
${iMSTKData_SOURCE}/Data
${CMAKE_BINARY_DIR}/../External/iMSTKData/src/Data
${CMAKE_INSTALL_PREFIX}/data
)
......
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