Commit 2f3c9b31 authored by Ben Boeckel's avatar Ben Boeckel

superbuild: honor depends for dummy projects

parent eabdb7e2
......@@ -221,7 +221,7 @@ function(add_external_developer_project_internal name)
endforeach()
#add a dummy project that is needed by the _ep_write_initial_cache
add_external_dummy_project_internal_with_depends(${name} "${arg_DEPENDS}")
add_external_dummy_project_internal(${name})
#write out all the cmake vars to a file that can be used to prime a build
set(cache_file "${SuperBuild_BINARY_DIR}/${name}-Developer-Config.cmake")
......
......@@ -284,34 +284,16 @@ macro(get_project_depends _name _prefix)
endif()
endmacro()
#------------------------------------------------------------------------------
function(add_external_dummy_project_internal_with_depends name depends)
#we have to set prefix, and install_dir
#as other parts of the code require that even dummy projects have a valid
#install path and prefix
ExternalProject_Add(${name}
DEPENDS "${depends}"
PREFIX ${name}
DOWNLOAD_DIR ${download_location}
INSTALL_DIR ${install_location}
DOWNLOAD_COMMAND ""
SOURCE_DIR ""
UPDATE_COMMAND ""
CONFIGURE_COMMAND ""
BUILD_COMMAND ""
INSTALL_COMMAND ""
)
endfunction()
#------------------------------------------------------------------------------
function(add_external_dummy_project_internal name)
set(arg_DEPENDS)
get_project_depends("${name}" arg)
#we have to set prefix, and install_dir
#as other parts of the code require that even dummy projects have a valid
#install path and prefix
ExternalProject_Add(${name}
DEPENDS ${arg_DEPENDS}
PREFIX ${name}
DOWNLOAD_DIR ${download_location}
INSTALL_DIR ${install_location}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment