Remove the project parameter for the customization hook

The hooks are meant to be project specific, and should therefore
either know their own name or at least have access to a variable with
that name in it.
This commit is contained in:
Roland Kaufmann 2013-06-29 22:04:00 +02:00
parent b0c5549e30
commit 1196201046

View File

@ -84,7 +84,7 @@ find_openmp (${project})
# callback hook to setup additional dependencies # callback hook to setup additional dependencies
if (COMMAND prereqs_hook) if (COMMAND prereqs_hook)
prereqs_hook (${project}) prereqs_hook ()
endif (COMMAND prereqs_hook) endif (COMMAND prereqs_hook)
# macro to set standard variables (INCLUDE_DIRS, LIBRARIES etc.) # macro to set standard variables (INCLUDE_DIRS, LIBRARIES etc.)
@ -120,7 +120,7 @@ opm_sources (${project})
# processing after base sources have been identified # processing after base sources have been identified
if (COMMAND sources_hook) if (COMMAND sources_hook)
sources_hook (${project}) sources_hook ()
endif (COMMAND sources_hook) endif (COMMAND sources_hook)
# create configuration header which describes available features # create configuration header which describes available features
@ -140,7 +140,7 @@ configure_vars (
# call this hook to let it setup necessary conditions for Fortran support # call this hook to let it setup necessary conditions for Fortran support
if (COMMAND fortran_hook) if (COMMAND fortran_hook)
fortran_hook (${project}) fortran_hook ()
endif (COMMAND fortran_hook) endif (COMMAND fortran_hook)
if (${project}_FORTRAN_IF) if (${project}_FORTRAN_IF)
@ -194,7 +194,7 @@ endmacro (cond_disable_test name)
# special processing for tests # special processing for tests
if (COMMAND tests_hook) if (COMMAND tests_hook)
tests_hook (${project}) tests_hook ()
endif (COMMAND tests_hook) endif (COMMAND tests_hook)
# make datafiles necessary for tests available in output directory # make datafiles necessary for tests available in output directory