Skip to content

Commit

Permalink
Build the VTK test data directory properly
Browse files Browse the repository at this point in the history
If VTK is not the top level directory, an extra set of path components
will be injected between ExternalData and Testing. Compute this path and
add it to the expected output directory.

Change-Id: I13dc4b412f6a785f57fd99896b37475510a9833e
  • Loading branch information
mathstuf committed Apr 16, 2014
1 parent 910a306 commit e04656f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Expand Up @@ -40,7 +40,8 @@ if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
endif()

# Test input data staging directory.
set(VTK_TEST_DATA_DIR "${ExternalData_BINARY_ROOT}/Testing")
file(RELATIVE_PATH vtk_reldir "${CMAKE_SOURCE_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}")
set(VTK_TEST_DATA_DIR "${ExternalData_BINARY_ROOT}/${vtk_reldir}/Testing")

# Test input data directory.
set(VTK_TEST_INPUT_DIR "${VTK_SOURCE_DIR}/Testing/Data")
Expand Down

0 comments on commit e04656f

Please sign in to comment.