Skip to content
Snippets Groups Projects
Commit d1548cd5 authored by Ben Boeckel's avatar Ben Boeckel
Browse files

Store VTK's ExternalData in its source directory

If a parent project wants to use ExternalData (say…ParaView), VTK stores
its data in ParaView's source tree. Store it in VTK's instead.

Change-Id: I7b9ab18159338d6d56d406de40d78e6f66405900
parent 5b742fd8
No related branches found
No related tags found
No related merge requests found
......@@ -4,9 +4,9 @@ include(${_VTKExternalData_DIR}/ExternalData.cmake)
if(NOT VTK_DATA_STORE)
# Select a default from the following.
set(VTK_DATA_STORE_DEFAULT "")
if(EXISTS "${CMAKE_SOURCE_DIR}/.ExternalData/config/store")
if(EXISTS "${VTK_SOURCE_DIR}/.ExternalData/config/store")
# Configuration left by developer setup script.
file(STRINGS "${CMAKE_SOURCE_DIR}/.ExternalData/config/store"
file(STRINGS "${VTK_SOURCE_DIR}/.ExternalData/config/store"
VTK_DATA_STORE_DEFAULT LIMIT_COUNT 1 LIMIT_INPUT 1024)
elseif(IS_DIRECTORY "${CMAKE_SOURCE_DIR}/../VTKExternalData")
# Adjacent directory created by user.
......
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