Commit 2381dfed authored by Ben Boeckel's avatar Ben Boeckel

SuperbuildMacros: move the source and build trees

The other ways end up with extremely long paths; this should help
shorten things up.
parent 5dd46972
Pipeline #25362 passed with stage
function (project_ignore_regexes variable project)
set(exceptions)
list(APPEND exceptions
"${project}/src/${project}"
"${project}\\\\src\\\\${project}")
"${project}/src"
"${project}\\\\src")
string(TOLOWER "${project}" lower_project)
if ((APPLE OR WIN32) AND (NOT lower_project STREQUAL project))
if (WIN32)
list(APPEND exceptions
"${lower_project}\\\\src\\\\${lower_project}")
"${lower_project}\\\\src")
else ()
list(APPEND exceptions
"${lower_project}/src/${lower_project}")
"${lower_project}/src")
endif ()
endif ()
......
......@@ -659,11 +659,20 @@ function (_superbuild_add_project_internal name)
${ld_library_path_argument})
endif ()
set(binary_dir BINARY_DIR "${name}/build")
list(FIND ARGN "BUILD_IN_SOURCE" in_source)
if (in_source GREATER -1)
set(binary_dir)
endif ()
# ARGN needs to be quoted so that empty list items aren't removed if
# that happens options like INSTALL_COMMAND "" won't work
_superbuild_ExternalProject_add(${name} "${ARGN}"
PREFIX "${name}"
DOWNLOAD_DIR "${superbuild_download_location}"
STAMP_DIR "${name}/stamp"
SOURCE_DIR "${name}/src"
${binary_dir}
INSTALL_DIR "${superbuild_install_location}"
# add url/mdf/git-repo etc. specified in versions.cmake
......
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