Commits (7)
......@@ -108,19 +108,15 @@ function (superbuild_add_project name)
set(can_use_system FALSE)
set(must_use_system FALSE)
set(default "${_superbuild_default_${name}}")
set(allow_developer_mode FALSE)
set(debuggable FALSE)
set(default OFF)
set(selectable FALSE)
set(build_shared_libs_independent FALSE)
set(help_string)
set(depends)
set(optional_depends)
if (DEFINED "_superbuild_${name}_selectable")
set(selectable "${_superbuild_${name}_selectable}")
endif ()
set(ep_arguments)
set(grab)
......@@ -143,9 +139,6 @@ function (superbuild_add_project name)
elseif (arg STREQUAL "SELECTABLE")
set(selectable TRUE)
set(grab)
elseif (arg STREQUAL "BUILD_SHARED_LIBS_INDEPENDENT")
set(build_shared_libs_independent TRUE)
set(grab)
elseif (arg STREQUAL "HELP_STRING")
set(grab help_string)
elseif (arg STREQUAL "DEPENDS")
......@@ -162,6 +155,14 @@ function (superbuild_add_project name)
endif ()
endforeach ()
# Allow projects to override default values for args
if (DEFINED "_superbuild_default_${name}")
set(default "${_superbuild_default_${name}}")
endif ()
if (DEFINED "_superbuild_${name}_selectable")
set(selectable "${_superbuild_${name}_selectable}")
endif ()
# Allow projects to override the help string specified in the project file.
if (DEFINED "_superbuild_help_string_${name}")
set(help_string "${_superbuild_help_string_${name}}")
......
......@@ -43,18 +43,20 @@ function (superbuild_set_revision name)
PROPERTY
"${name}_revision" SET)
if (NOT have_revision)
if (${name}_SKIP_VERIFICATION)
set(keys URL_HASH URL_MD5)
cmake_parse_arguments(_args "" "${keys}" "" ${ARGN})
set(args "${_args_UNPARSED_ARGUMENTS}")
else()
set(args "${ARGN}")
endif()
set_property(GLOBAL
PROPERTY
"${name}_revision" "${args}")
if (have_revision)
return ()
endif ()
if (${name}_SKIP_VERIFICATION)
set(keys URL_HASH URL_MD5)
cmake_parse_arguments(_args "" "${keys}" "" ${ARGN})
set(args "${_args_UNPARSED_ARGUMENTS}")
else()
set(args "${ARGN}")
endif()
set_property(GLOBAL
PROPERTY
"${name}_revision" "${args}")
endfunction ()
#[==[.md INTERNAL
......@@ -185,6 +187,14 @@ However, if it does not exist, the selection marked as the `FALLBACK` will be
used instead.
#]==]
function (superbuild_set_selectable_source name)
get_property(have_revision GLOBAL
PROPERTY
"${name}_revision" SET)
if (have_revision)
return ()
endif ()
set(selections)
set(customizable_selections)
set(promote_selections)
......
include("${CMAKE_CURRENT_LIST_DIR}/../qt5.system.cmake")
get_filename_component(qt5_dllpath "${Qt5_DIR}/../../../bin" REALPATH)
set(qt_package_dep_variable "USE_SYSTEM_qt5")
include("${CMAKE_CURRENT_LIST_DIR}/qt5.package.cmake")