function(dump_cmake_variables)
  get_cmake_property(_variableNames VARIABLES)
  list(SORT _variableNames)
  foreach(_variableName ${_variableNames})
    if((NOT DEFINED ARGV0) OR _variableName MATCHES ${ARGV0})
      message(STATUS "${_variableName}=${${_variableName}}")
    endif()
  endforeach()
endfunction()
