[Cmake-commits] CMake branch, master, updated. beda5eab398ad117e2fe17cbbca1e65843abc74d
cmake-commits at cmake.org
cmake-commits at cmake.org
Wed Mar 17 11:55:09 EDT 2010
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".
The branch, master has been updated
via beda5eab398ad117e2fe17cbbca1e65843abc74d (commit)
from b41647ca8fd5220c0d20f757f3db8c0c493b4d2e (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=beda5eab398ad117e2fe17cbbca1e65843abc74d
commit beda5eab398ad117e2fe17cbbca1e65843abc74d
Author: Michael Wild <themiwi at users.sourceforge.net>
Date: Fri Feb 26 14:35:26 2010 +0000
ENH: Hook in GetPrerequisites to override item type
The hook is called gp_resolved_file_type_override.
Signed-off-by: Michael Wild <themiwi at users.sourceforge.net>
diff --git a/Modules/GetPrerequisites.cmake b/Modules/GetPrerequisites.cmake
index 123b433..24cee55 100644
--- a/Modules/GetPrerequisites.cmake
+++ b/Modules/GetPrerequisites.cmake
@@ -16,6 +16,7 @@
# gp_resolve_item
# (projects can override with gp_resolve_item_override)
# gp_resolved_file_type
+# (projects can override with gp_resolved_file_type_override)
# gp_file_type
# get_prerequisites
# list_prerequisites
@@ -345,6 +346,9 @@ endfunction(gp_resolve_item)
# embedded
# other
#
+# Override on a per-project basis by providing a project-specific
+# gp_resolved_file_type_override function.
+#
function(gp_resolved_file_type original_file file exepath dirs type_var)
#message(STATUS "**")
@@ -428,6 +432,13 @@ function(gp_resolved_file_type original_file file exepath dirs type_var)
endif()
endif()
+ # Provide a hook so that projects can override the decision on whether a
+ # library belongs to the system or not by whatever logic they choose:
+ #
+ if(COMMAND gp_resolved_file_type_override)
+ gp_resolved_file_type_override("${resolved_file}" type)
+ endif()
+
set(${type_var} "${type}" PARENT_SCOPE)
#message(STATUS "**")
-----------------------------------------------------------------------
Summary of changes:
Modules/GetPrerequisites.cmake | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
hooks/post-receive
--
CMake
More information about the Cmake-commits
mailing list